Bug 119115 - [Meta] document.body getter/setter should match the HTML5 spec
Summary: [Meta] document.body getter/setter should match the HTML5 spec
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: BlinkMergeCandidate
Depends on: 159488 159490
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-25 17:07 PDT by Ryosuke Niwa
Modified: 2016-07-06 21:49 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-07-25 17:07:30 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/4cb65a17e49d135e7d0d4209eb557e98b2d7b097

Document::setBody previously would create a deep copy of the node if you moved it
from a different document and didn't allow framesets. Document::body would incorrectly
return <frameset> even if <body> came first. I also made setBody AttachLazily just
like doing appendChild(body) would have done.

Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-body
Comment 1 Chris Dumez 2016-07-06 19:07:47 PDT
Fixed the getter via Bug 159488.
Fixing the setter via Bug 159490.