Bug 119115

Summary: [Meta] document.body getter/setter should match the HTML5 spec
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, cdumez, kling, koivisto, syoichi
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 159488, 159490    
Bug Blocks:    

Ryosuke Niwa
Reported 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
Attachments
Chris Dumez
Comment 1 2016-07-06 19:07:47 PDT
Fixed the getter via Bug 159488. Fixing the setter via Bug 159490.
Note You need to log in before you can comment on or make changes to this bug.