[whatwg] Allowing ">" in attribute values

Benjamin M. Schwartz bmschwar at fas.harvard.edu
Thu Jun 24 06:34:31 PDT 2010


On 06/24/2010 05:22 AM, Brett Zamir wrote:
> I do not see any reference to this in the XHTML 1.0 specification (nor
> XHTML 1.1), and in XML, section 2.4, it states only that it must be
> escaped if part of the sequence "]]>" in "content", which I guess means
> only element content. E4X also does not escape ">" in attribute values
> (only in element content).

The spec does not mention it as far as I can see.  On the other hand,
validator.w3.org on XHTML 1.1 content says things like 'character ">" is
not allowed in the value of attribute "rel"'.  Possibly as a result, XHTML
generators typically escape this character, because otherwise they would
fail validation.

HTML5 is about making a spec that matches common practice, right?  In
practice, no one puts ">" in attribute values.

--Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100624/72024897/attachment-0002.pgp>


More information about the whatwg mailing list