W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2011

2002/css-validator/org/w3c/css/css TagSoupStyleSheetHandler.java,1.6,1.7

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 19 Jan 2011 18:37:51 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Pfcul-0002ZZ-EZ@lionel-hutz.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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:26 GMT