- From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 10 Aug 2007 10:45:21 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/parser
In directory hutz:/tmp/cvs-serv13696/org/w3c/css/parser
Modified Files:
CssFouffa.java
Log Message:
Testing if import is used with file protocol:
in this case, the import statement is ignored and a warning is sent
Index: CssFouffa.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/CssFouffa.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- CssFouffa.java 13 Jul 2007 13:32:21 -0000 1.38
+++ CssFouffa.java 10 Aug 2007 10:45:18 -0000 1.39
@@ -404,6 +404,12 @@
public void handleImport(URL url, String file, AtRuleMedia media) {
// CssError cssError = null;
+ //if it's not permitted to import... (direct input)
+ if (url.getProtocol().equals("file")) {
+ ac.getFrame().addWarning("unsupported-import");
+ return;
+ }
+
try {
URL importedURL = HTTPURL.getURL(url, file);
String surl = importedURL.toString();
Received on Friday, 10 August 2007 10:45:23 UTC