W3C home > Mailing lists > Public > public-html@w3.org > January 2009

Re: HTML is a declarative mark-up language

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 31 Jan 2009 00:36:10 +0000 (UTC)
To: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Cc: HTML WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0901310028590.952@hixie.dreamhostps.com>

On Fri, 30 Jan 2009, Philip TAYLOR wrote:
> 
>       <a id="mytable">
>         <ins>
>           <table><tr><td></td></tr></table>
>         </ins>
>       </a>
> 
> which is valid

Actually that's non-conforming HTML4. DTD-based validators are unable to 
verify this conformance criteria, but it is nonetheless stated explicitly 
in section 9.4:

# The INS and DEL elements must not contain block-level content when 
# these elements behave as inline elements.
 -- http://www.w3.org/TR/html4/struct/text.html#edef-ins

HTML5 has the same requirement, though stated using different terms (the 
"transparent" concept mentioned earlier). However, in HTML5, the above 
actually _is_ valid because in that example the "a" and "ins" elements are 
both being used as what HTML4 called "block-level content".

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 31 January 2009 00:36:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:28 GMT