Document.body should return the first child of the html element that is either a body / frameset element: - https://html.spec.whatwg.org/multipage/dom.html#dom-document-body - https://html.spec.whatwg.org/multipage/dom.html#the-body-element-2 We use the first child of the *document* element that is either a body / frameset element, even if the document element is not an html element. Firefox and Chrome match the specification.
Created attachment 282942 [details] Patch
Comment on attachment 282942 [details] Patch Clearing flags on attachment: 282942 Committed r202881: <http://trac.webkit.org/changeset/202881>
All reviewed patches have been landed. Closing bug.