Bug 148770 - Range.cloneContents() / extractContents should throw a HierarchyRequestError when encountering a doctype
Summary: Range.cloneContents() / extractContents should throw a HierarchyRequestError ...
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
Keywords: InRadar
Depends on:
Reported: 2015-09-03 18:50 PDT by Ryosuke Niwa
Modified: 2015-09-21 12:15 PDT (History)
6 users (show)

See Also:

Patch (13.37 KB, patch)
2015-09-21 11:29 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 2 Chris Dumez 2015-09-21 11:29:48 PDT
Created attachment 261667 [details]
Comment 3 WebKit Commit Bot 2015-09-21 12:15:22 PDT
Comment on attachment 261667 [details]

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.