Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: LayoutTests/fast/dom/Document/adopt-node-with-doctype.html

Issue 364173005: Document.adoptNode should not throw an exception for DocumentType argument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Document.adoptNode</title>
5 <script src="../../../resources/testharness.js"></script>
6 <script src="../../../resources/testharnessreport.js"></script>
7 <link rel="stylesheet" href="../../../resources/testharness.css">
8 </head>
9 <body>
10 <p>This page tests the DOM document.adoptNode method with DocumentType.</p>
11 <script>
12 test(function() {
13 var doctype = document.doctype;
14 assert_equals(doctype.parentNode, document)
15 assert_equals(doctype.ownerDocument, document)
16 assert_equals(document.adoptNode(doctype), doctype)
17 assert_equals(doctype.parentNode, null)
18 assert_equals(doctype.ownerDocument, document)
19 }, "Explicitly adopting a DocumentType should work.")
20 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698