Bug 149097

Summary: Document.adoptNode() should be able to explicitly adopt a DocumentType node
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, buildbot, commit-queue, esprehn+autocc, kangil.han, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews104 for mac-mavericks-wk2
none
Archive of layout-test-results from ews101 for mac-mavericks
none
Patch none

Description Chris Dumez 2015-09-12 15:05:34 PDT
Document.adoptNode() should be able to explicitly adopt a DocumentType node:
https://dom.spec.whatwg.org/#dom-document-adoptnode

WebKit currently throws a NotSupportedError. Chrome and Firefox match the spec amd adopt the DocumentType.
Comment 1 Chris Dumez 2015-09-12 15:06:03 PDT
rdar://problem/22549345
Comment 2 Chris Dumez 2015-09-12 15:25:03 PDT
Created attachment 261065 [details]
Patch
Comment 3 Build Bot 2015-09-12 16:04:02 PDT
Comment on attachment 261065 [details]
Patch

Attachment 261065 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/165752

New failing tests:
dom/xhtml/level3/core/documentadoptnode12.xhtml
dom/xhtml/level3/core/documentadoptnode11.xhtml
dom/xhtml/level3/core/documentadoptnode10.xhtml
Comment 4 Build Bot 2015-09-12 16:04:06 PDT
Created attachment 261066 [details]
Archive of layout-test-results from ews104 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 5 Build Bot 2015-09-12 16:15:10 PDT
Comment on attachment 261065 [details]
Patch

Attachment 261065 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/165776

New failing tests:
dom/xhtml/level3/core/documentadoptnode12.xhtml
dom/xhtml/level3/core/documentadoptnode11.xhtml
dom/xhtml/level3/core/documentadoptnode10.xhtml
Comment 6 Build Bot 2015-09-12 16:15:15 PDT
Created attachment 261067 [details]
Archive of layout-test-results from ews101 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews101  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 7 Chris Dumez 2015-09-12 18:43:01 PDT
Created attachment 261071 [details]
Patch
Comment 8 Ryosuke Niwa 2015-09-13 21:19:52 PDT
Comment on attachment 261071 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=261071&action=review

> LayoutTests/dom/xhtml/level3/core/documentadoptnode10-expected.txt:2
> -Status	Success
> +Status	failure

I wonder if we should just remove these dom3 tests...
They seem to be completely obsolete by now.
Comment 9 Chris Dumez 2015-09-13 22:06:51 PDT
Comment on attachment 261071 [details]
Patch

Clearing flags on attachment: 261071

Committed r189681: <http://trac.webkit.org/changeset/189681>
Comment 10 Chris Dumez 2015-09-13 22:06:57 PDT
All reviewed patches have been landed.  Closing bug.