2002/css-validator/org/w3c/css/parser CssFouffa.java,1.59,1.60

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

Modified Files:
	CssFouffa.java 
Log Message:
automatic aggregation of visited URIs, only namespaces URIs are in a weird state

Index: CssFouffa.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssFouffa.java,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- CssFouffa.java	9 Feb 2012 17:36:27 -0000	1.59
+++ CssFouffa.java	23 Feb 2012 14:28:10 -0000	1.60
@@ -425,16 +425,20 @@
 
         URL importedURL;
         try {
-        importedURL = HTTPURL.getURL(url, file);
+            importedURL = HTTPURL.getURL(url, file);
         } catch (MalformedURLException mue) {
             if (!Util.noErrorTrace) {
                 ac.getFrame().addError(new CssError(mue));
-            } 
+            }
             return;
         }
-        
+
         // add it to the list of linked URIs
-        ac.addLinkedURI(importedURL);
+        // only if it was a string (otherwise the URI is already there
+        // as CssURL contains code to add it directly
+        if (!is_url) {
+            ac.addLinkedURI(importedURL);
+        }
         // check if we need to follow it
         if (!ac.followlinks()) {
             // TODO add a warning ?

Received on Thursday, 23 February 2012 14:28:13 UTC