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.
rdar://problem/22549345
Created attachment 261065 [details] Patch
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
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 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
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
Created attachment 261071 [details] Patch
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 on attachment 261071 [details] Patch Clearing flags on attachment: 261071 Committed r189681: <http://trac.webkit.org/changeset/189681>
All reviewed patches have been landed. Closing bug.