2002/css-validator/org/w3c/css/servlet CssValidator.java,1.26,1.27

Update of /sources/public/2002/css-validator/org/w3c/css/servlet
In directory hutz:/tmp/cvs-serv18715/org/w3c/css/servlet

Modified Files:
	CssValidator.java 
Log Message:
Added TagSoup parser to cope with HTML, instead of the old html4 parser, also better code for handling multiple type of docs. Reread of the stream is now avoided

Index: CssValidator.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/servlet/CssValidator.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- CssValidator.java	29 Jan 2007 05:19:07 -0000	1.26
+++ CssValidator.java	24 Apr 2007 11:14:23 -0000	1.27
@@ -24,7 +24,7 @@
 import javax.servlet.http.HttpServletResponse;
 
 import org.w3c.css.css.CssParser;
-import org.w3c.css.css.HTMLStyleSheetParser;
+import org.w3c.css.css.DocumentParser;
 import org.w3c.css.css.StyleReport;
 import org.w3c.css.css.StyleReportFactory;
 import org.w3c.css.css.StyleSheet;
@@ -332,8 +332,7 @@
 		uri = HTTPURL.getURL(uri).toString(); // needed to be sure
 		// that it is a valid
 		// url		
-		HTMLStyleSheetParser URLparser = new HTMLStyleSheetParser(ac,
-									  uri);
+		DocumentParser URLparser = new DocumentParser(ac, uri);
 
 		handleRequest(ac, res, uri, URLparser.getStyleSheet(), output,
 			      warningLevel, errorReport);

Received on Tuesday, 24 April 2007 11:14:29 UTC