Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upThe HTML parser creates two nodes with tag=html #219
Closed
Comments
|
Script can most certainly get at the http://dom.spec.whatwg.org/#interface-documenttype |
|
But for purposes of layout, of course, the doctype is irrelevant. The "nothing" node you have there is also reachable from script. It's http://dom.spec.whatwg.org/#interface-document |
|
This is fixed now. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One of them seems to correspond to nothing, and has the Doctype node and HTMLHtmlElement as children. The other represents the HTMLHtmlElement itself.
Unless there's some way to query the doctype node through the tree structure from script, we should save doctype somewhere and submit the HTMLHtmlElement node to layout as the document root.