commit | c482a252feb7731369dcc483b0b145efaae7aba6 | [log] [tgz] |
---|---|---|
author | rob.buis <rob.buis@samsung.com> | Fri Jan 15 02:07:40 2016 |
committer | Commit bot <commit-bot@chromium.org> | Fri Jan 15 02:10:05 2016 |
tree | eb2e2d344f4a7ed2ac8a80ea10c759b6d109529c | |
parent | a46927309c1c4d72c61e388814ddffb232995772 [diff] |
Fix behavior of Document.body getter According to [1], the body element is the first child of the html element that is either a body element or a frameset element. The current version does not check that the parent node is the html element, so add that check. Behavior matches Firefox. [1] https://html.spec.whatwg.org/multipage/dom.html#the-body-element-2 BUG=490511 Review URL: https://codereview.chromium.org/1578193006 Cr-Commit-Position: refs/heads/master@{#369654}