W3C home > Mailing lists > Public > www-validator@w3.org > November 2008

[VE][122] Smart quotes not allowed in the value of attribute "id"

From: Dan Dascalescu <ddascalescu@gmail.com>
Date: Fri, 21 Nov 2008 04:04:10 -0800
Message-ID: <3561cc6d0811210404w24f59cadu1b32b578c6036035@mail.gmail.com>
To: www-validator@w3.org

I was validating the following XHTML 1.0 Strict fragment:

<h1 id="&#8220; &#8221;">header text</h1>

and got the error that the "smart" quotes were not allowed. I'm
curious as to why that is, since smart quotes are high-ASCII Unicode
characters like any other, and hex-encoded Chinese characters (e.g.
&#x884C;) are perfectly allowed in 'id' attribute values.

Please clarify,
Dan Dascalescu
Received on Friday, 21 November 2008 17:54:47 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:57 UTC