Bug 148770

Summary: Range.cloneContents() / extractContents should throw a HierarchyRequestError when encountering a doctype
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, esprehn+autocc, kangil.han, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Ryosuke Niwa 2015-09-03 18:50:45 PDT
Range.cloneContents should throw a HierarchyRequestError when the range contains a DocType node as specified in https://dom.spec.whatwg.org/#concept-range-clone

This bug was found by the newly added LayoutTests/http/tests/w3c/dom/ranges/Range-cloneContents.html
Comment 1 Radar WebKit Bug Importer 2015-09-03 18:51:24 PDT
<rdar://problem/22570898>
Comment 2 Chris Dumez 2015-09-21 11:29:48 PDT
Created attachment 261667 [details]
Patch
Comment 3 WebKit Commit Bot 2015-09-21 12:15:22 PDT
Comment on attachment 261667 [details]
Patch

Clearing flags on attachment: 261667

Committed r190067: <http://trac.webkit.org/changeset/190067>
Comment 4 WebKit Commit Bot 2015-09-21 12:15:26 PDT
All reviewed patches have been landed.  Closing bug.