Re: HTML is a declarative mark-up language

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 UTC