- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 31 Oct 2011 13:22:35 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/servlet In directory hutz:/tmp/cvs-serv31249/org/w3c/css/servlet Modified Files: CssValidator.java Log Message: using htmlparser to parse html in POST Index: CssValidator.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/servlet/CssValidator.java,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- CssValidator.java 23 Oct 2011 19:47:21 -0000 1.50 +++ CssValidator.java 31 Oct 2011 13:22:33 -0000 1.51 @@ -9,11 +9,11 @@ import org.w3c.css.css.CssParser; import org.w3c.css.css.DocumentParser; +import org.w3c.css.css.HTMLParserStyleSheetHandler; import org.w3c.css.css.StyleReport; import org.w3c.css.css.StyleReportFactory; import org.w3c.css.css.StyleSheet; import org.w3c.css.css.StyleSheetParser; -import org.w3c.css.css.TagSoupStyleSheetHandler; import org.w3c.css.error.ErrorReport; import org.w3c.css.error.ErrorReportFactory; import org.w3c.css.index.IndexGenerator; @@ -399,7 +399,7 @@ .getStyleSheet(), output, warningLevel, errorReport); } else { // else, trying HTML - TagSoupStyleSheetHandler handler = new TagSoupStyleSheetHandler(null, ac); + HTMLParserStyleSheetHandler handler = new HTMLParserStyleSheetHandler(null, ac); handler.parse(is, fileName); handleRequest(ac, res, fileName, handler.getStyleSheet(), output, @@ -664,8 +664,7 @@ output, warningLevel, errorReport); } else { // else, trying HTML - TagSoupStyleSheetHandler handler; - handler = new TagSoupStyleSheetHandler(null, ac); + HTMLParserStyleSheetHandler handler = new HTMLParserStyleSheetHandler(null, ac); handler.parse(is, fileName); handleRequest(ac, res, fileName, handler.getStyleSheet(),
Received on Monday, 31 October 2011 13:22:40 UTC