W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] text/html flavor conformance checkers and <foo />

From: Henri Sivonen <hsivonen@iki.fi>
Date: Tue, 26 Apr 2005 21:21:58 +0300
Message-ID: <3eb7972b01befae4bd976fd969435de3@iki.fi>
On Apr 26, 2005, at 19:08, fantasai wrote:

> Henri Sivonen wrote:
>> What do you suggest the parser layer of an text/html conformance 
>> checker say about <input checkbox ...>?
>> 1. Silently treat as <input type="checkbox" ...>?
>> 2. Treat as <input type="checkbox" ...> but warn?
>> 3. Treat as <input checkbox="checkbox" ...> causing an error to be 
>> reported on a higher layer?
>> 4. Treat as fatal error in the parser?
>> I'm inclined to choose 3.
>
> *Why?* Why of all things would you choose to interpret it like /that/?
> It's neither reporting a useful error, nor handling it per SGML rules.

To make the separation of concerns similar to what it would be on the 
XML side while being real about SGMLness being fiction. That is, the 
parser does not need to know if an attribute is allowed. That's a job 
for a higher layer.

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
Received on Tuesday, 26 April 2005 11:21:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:22 UTC