- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 30 Oct 2011 21:00:34 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv12045
Modified Files:
DocumentParser.java
Log Message:
Added support for the HTML5 parser http://about.validator.nu/htmlparser/
Index: DocumentParser.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/DocumentParser.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- DocumentParser.java 6 Oct 2011 18:28:29 -0000 1.8
+++ DocumentParser.java 30 Oct 2011 21:00:32 -0000 1.9
@@ -57,7 +57,8 @@
style = parser.getStyleSheet();
} else if (urlLower.endsWith(".html") || urlLower.endsWith(".htm") ||
urlLower.endsWith(".shtml") || urlLower.endsWith("/")) {
- TagSoupStyleSheetHandler handler = new TagSoupStyleSheetHandler(htmlURL, ac);
+ //TagSoupStyleSheetHandler handler = new TagSoupStyleSheetHandler(htmlURL, ac);
+ HTMLParserStyleSheetHandler handler = new HTMLParserStyleSheetHandler(htmlURL, ac);
handler.parse(htmlURL);
style = handler.getStyleSheet();
if (style != null) {
@@ -109,8 +110,10 @@
}
if (contentType.match(MimeType.TEXT_HTML) == MimeType.MATCH_SPECIFIC_SUBTYPE) {
- TagSoupStyleSheetHandler handler;
- handler = new TagSoupStyleSheetHandler(htmlURL, ac);
+ HTMLParserStyleSheetHandler handler;
+ handler = new HTMLParserStyleSheetHandler(htmlURL, ac);
+// TagSoupStyleSheetHandler handler;
+// handler = new TagSoupStyleSheetHandler(htmlURL, ac);
handler.parse(urlString, connection);
style = handler.getStyleSheet();
Received on Sunday, 30 October 2011 21:00:40 UTC