- From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 31 Oct 2011 18:32:21 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv11626/org/w3c/css/css
Modified Files:
HTMLParserStyleSheetHandler.java TagSoupStyleSheetHandler.java
XMLStyleSheetHandler.java
Log Message:
Fix xml-stylesheet PI type check.
Index: HTMLParserStyleSheetHandler.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/HTMLParserStyleSheetHandler.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- HTMLParserStyleSheetHandler.java 30 Oct 2011 21:02:51 -0000 1.1
+++ HTMLParserStyleSheetHandler.java 31 Oct 2011 18:32:19 -0000 1.2
@@ -177,9 +177,8 @@
if (type != null) {
MimeType mt = null;
try {
- new MimeType(type);
+ mt = new MimeType(type);
} catch (Exception ex) { /* at worst, null */ }
- ;
if (mt != null && (MimeType.TEXT_CSS.match(mt) ==
MimeType.MATCH_SPECIFIC_SUBTYPE)) {
// we're dealing with a stylesheet...
Index: XMLStyleSheetHandler.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/XMLStyleSheetHandler.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- XMLStyleSheetHandler.java 23 Oct 2011 19:47:21 -0000 1.32
+++ XMLStyleSheetHandler.java 31 Oct 2011 18:32:19 -0000 1.33
@@ -174,10 +174,8 @@
if (type != null) {
MimeType mt = null;
try {
- new MimeType(type);
- } catch (Exception ex) { /* at worst, null */
- }
- ;
+ mt = new MimeType(type);
+ } catch (Exception ex) { /* at worst, null */ }
if (mt != null
&& (MimeType.TEXT_CSS.match(mt) == MimeType.MATCH_SPECIFIC_SUBTYPE)) {
// we're dealing with a stylesheet...
Index: TagSoupStyleSheetHandler.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/TagSoupStyleSheetHandler.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- TagSoupStyleSheetHandler.java 23 Oct 2011 19:47:21 -0000 1.9
+++ TagSoupStyleSheetHandler.java 31 Oct 2011 18:32:19 -0000 1.10
@@ -174,9 +174,8 @@
if (type != null) {
MimeType mt = null;
try {
- new MimeType(type);
+ mt = new MimeType(type);
} catch (Exception ex) { /* at worst, null */ }
- ;
if (mt != null && (MimeType.TEXT_CSS.match(mt) ==
MimeType.MATCH_SPECIFIC_SUBTYPE)) {
// we're dealing with a stylesheet...
Received on Monday, 31 October 2011 18:32:23 UTC