2002/css-validator/org/w3c/css/parser CssFouffa.java,1.30,1.31

Update of /sources/public/2002/css-validator/org/w3c/css/parser
In directory hutz:/tmp/cvs-serv25510

Modified Files:
	CssFouffa.java 
Log Message:
the visited links is set for the child, not for the whole validation.
It fixes:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=367


Index: CssFouffa.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssFouffa.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- CssFouffa.java	8 Aug 2005 13:18:11 -0000	1.30
+++ CssFouffa.java	23 Aug 2005 09:42:20 -0000	1.31
@@ -388,7 +388,8 @@
 		    return;
 		}
 	    }
-	    visited.addElement(surl);
+	    Vector newVisited = (Vector) visited.clone();
+	    newVisited.addElement(surl);
 	    
 	    if (Util.importSecurity) {
 		throw new FileNotFoundException("[SECURITY] You can't "
@@ -418,7 +419,7 @@
 	    Frame f = ac.getFrame();
 	    try {
 		CssFouffa cssFouffa = new CssFouffa(ac, importURL
-			.getInputStream(), importedURL, listeners, visited,
+			.getInputStream(), importedURL, listeners, newVisited,
 			properties, mode);
 		cssFouffa.setOrigin(getOrigin());
 		if (!media.isEmpty()) {

Received on Tuesday, 23 August 2005 09:42:29 UTC