- From: Ian Hickson <ian@hixie.ch>
- Date: Tue, 5 Jun 2007 23:07:23 +0000 (UTC)
On Wed, 27 Apr 2005, Henri Sivonen wrote: > On Apr 27, 2005, at 13:09, Ian Hickson wrote: > > On Tue, 26 Apr 2005, 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? > > > > 5. Treat as <input checkbox=""> > > Why? XHTML requires "boolean attributes" to be represented as foo='foo'. > If <input checked ...> was treated as <input checked='' ...>, one could > not reuse XHTML schemas on top a minimal text/html flavor parser. XHTML no longer requires this. foo="" and foo="foo" are now defined equivalently. > > The only exception, I believe, would be for <table border>, which > > would instead be treated as <table border="1">. > > Do you mean <table border> should pass a conformance check? No. The border="" attribute is not valid however it is written. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 5 June 2007 16:07:23 UTC