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

[whatwg] Serialization of boolean content attributes

From: Darin Adler <darin@apple.com>
Date: Fri, 18 Jun 2010 15:00:31 -0700
Message-ID: <228D6599-C447-4D01-AD1F-286FBB2DA13D@apple.com>
On Jun 18, 2010, at 11:03 AM, Jonas Sicking wrote:

> It would be pretty trivial to make the serializer HTML aware and hold a list of which attribute are 'boolean' in which elements, no? It already is HTML aware for a host of other reasons anyway.

One of the things I like about the current serialization rules is that the engine can parse and then serialize something for an element that is not yet known to the engine and it behaves no differently than one that is know. Attributes are simply strings. Having a different rule for boolean attributes would change that. Not a major concern, but something that bothers me slightly. It?s one thing to be HTML-aware and another to be future-of-HTML-aware.

    -- Darin
Received on Friday, 18 June 2010 15:00:31 UTC

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