[whatwg] Parsing the string <html>

Mohammad Al Houssami (Alumni) mha53 at mail.aub.edu
Sat Aug 3 01:29:01 PDT 2013

If you go to http://livedom.validator.nu/ and try to add <html> the DOM tree shows the head and body elements. I am using this as a reference to compare to my results. Its not reliable then?
Thank you 

-----Original Message-----
From: Tab Atkins Jr. [mailto:jackalmage at gmail.com] 
Sent: Saturday, August 03, 2013 1:18 AM
To: Mohammad Al Houssami (Alumni)
Cc: Ian Hickson; whatwg at whatwg.org
Subject: Re: [whatwg] Parsing the string <html>

On Fri, Aug 2, 2013 at 5:08 PM, Mohammad Al Houssami (Alumni) <mha53 at mail.aub.edu> wrote:
> That is totally correct. But are the head and body elements added to the document? So basically when we stop parsing the document should only have the html element is that correct?

No, the spec clearly says "Insert an HTML element..." for those as you trace through the parsing.


More information about the whatwg mailing list