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

Henri Sivonen hsivonen at iki.fi
Tue Apr 26 11:21:58 PDT 2005


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/




More information about the whatwg mailing list