W3C home > Mailing lists > Public > www-validator-css@w3.org > August 2006

Validator incorrectly reports validity for case of escaped close-quote which leaves quoted string unterminated

From: Cecil Ward <cecil@cecilward.com>
Date: Sun, 20 Aug 2006 21:43:05 +0100
To: <www-validator-css@w3.org>
Message-ID: <!&!GAAAAAAAAACKsDOspfcqTYzpBPcOwqC3woAAABgAAAAAAAAAirAzrKX3Kk2M6QT3DsKgt2RJIAAAAAAAEAAAANk95wK774FPu/CLlkK93kVvAAAAVmFsaWRhdG9yIGluY29ycmVjdGx5IHJlcG9ydHMgdmFsaWRpdHkgZm9yIGNhc2Ugb2YgZXNjYXBlZCBjbG9zZS1xdW90ZSB3aGljaCBsZWF2ZXMgcXVvdGVkIHN0cmluZyB1bnRlcm1pbmF0ZWQA@cecilward.com>

Test case checked using direct input mode, grammar CSS2 selected:

Test cases :


element { background-image: url("myimage\") ; }

element { background-image: url('myimage\') ; }

selector { font-family: "MyFont3\",  Serif;  }


I believe that the above examples are all illegal, if my reading of CSS 2.1
and CSS 2 is correct, yet the validator reports no error.

Reasoning: the escaped quote mark should be treated as _part of_ an
_identifier_, not as a closing string quote. See the productions for
"string1"/"string2" and "url" in CSS2 section D.2.


Regards,

Cecil Ward.
Received on Monday, 21 August 2006 15:45:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:17 GMT