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

[whatwg] Unsafe SGML minimizations

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 8 Sep 2005 14:26:10 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0509081424200.26999@dhalsim.dreamhost.com>
On Thu, 8 Sep 2005, Henri Sivonen wrote:
>
> I think the text/html flavor of HTML5 should not allow the following SGML
> minimization features (which are theoretically allowed in HTML 4), because
> each of them causes problems in at least one of Opera, Firefox and Safari.
> 
>  * <>
>  * </>

Agreed. Those should generate comment nodes, I think.


>  * tagc omission ie. <foo<bar>...</bar</foo>

Well we have to define what that does, and the most obvious error handling 
behaviour here is to start the new tag. So effectively, I would say we 
shoul have TAGC omission.


>  * <foo/bar/

Agreed, sadly. That would be equivalent to something like <foo /bar/=""> 
(or something similar).


>  * attribute name omission (except for the well-known "boolean attributes")

Again, we have to define error handling. <foo bar baz> will probably just 
be equivalent to <foo bar="" baz="">.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 8 September 2005 07:26:10 UTC

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