- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 19 Jan 2011 18:37:51 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv9867
Modified Files:
TagSoupStyleSheetHandler.java
Log Message:
per HTML5 missing type in <style> is no longer an error => we raise a warning in that case
Index: TagSoupStyleSheetHandler.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/TagSoupStyleSheetHandler.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- TagSoupStyleSheetHandler.java 13 Feb 2009 21:50:15 -0000 1.6
+++ TagSoupStyleSheetHandler.java 19 Jan 2011 18:37:49 -0000 1.7
@@ -13,25 +13,15 @@
*/
package org.w3c.css.css;
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.StringBufferInputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.net.URLConnection;
-import java.util.HashMap;
[...1373 lines suppressed...]
+ value.append('"');
+ } else if ("apos".equals(entity)) {
+ value.append('\'');
+ } else {
+ return table;
+ }
+ state -= 10;
+ break;
+ default:
+ return table;
+ }
+ }
+ current++;
+ }
+ if (name.length() != 0 && value.length() != 0) {
+ table.put(name.toString(), value.toString());
+ }
+ return table;
}
}
Received on Wednesday, 19 January 2011 18:37:52 UTC