W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2010

[whatwg] Allowing ">" in attribute values

From: Julian Reschke <julian.reschke@gmx.de>
Date: Thu, 24 Jun 2010 16:44:04 +0200
Message-ID: <4C236F34.6070806@gmx.de>
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
Received on Thursday, 24 June 2010 07:44:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:24 UTC