[whatwg] [html5] tags, elements and generated DOM

Anne van Kesteren fora at annevankesteren.nl
Tue Apr 5 03:37:27 PDT 2005


Lachlan Hunt wrote:
> No, there is no implied body element in either of those fragments.

I appreciate your comments but I was wondering if you have taken into 
account what existing user agents do. Since that, not some 
out-of-date-not-followed SGML standard, should be standardized in my 
humble opinion.

That also means that:

  <data:text/html,<style>body{background:lime}</style>>

... generates:

  HTML
   HEAD
    STYLE
     #text
   BODY

... whether you like it or not. Same for the other cases. I do not think 
it makes sense to say all current UAs are non-compliant as many pages 
may rely on the kind of DOM they generate.


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>




More information about the whatwg mailing list