[whatwg] Allowing ">" in attribute values
julian.reschke at gmx.de
Thu Jun 24 07:44:04 PDT 2010
On 24.06.2010 15:34, Benjamin M. Schwartz wrote:
> 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
Likely because of the content model for @rel. Try @title instead.
> 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.
I do it all the time.
Can we please stick to what is actually required, and not make up new
Best regards, Julian
More information about the whatwg