- From: Henri Sivonen <hsivonen@iki.fi>
- Date: Tue, 26 Apr 2005 21:21:58 +0300
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