Re: [whatwg] Parsing the string <html>

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@gmail.com] 
Sent: Saturday, August 03, 2013 1:18 AM
To: Mohammad Al Houssami (Alumni)
Cc: Ian Hickson; whatwg@whatwg.org
Subject: Re: [whatwg] Parsing the string <html>

On Fri, Aug 2, 2013 at 5:08 PM, Mohammad Al Houssami (Alumni) <mha53@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.

~TJ

Received on Saturday, 3 August 2013 08:29:32 UTC