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

Side by Side Diff: LayoutTests/fast/dom/createDocumentType-ownerDocument.html

Issue 22880019: [DOM4] Doctypes now always have a node document and can be moved across document boundaries (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improve tests Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://www.w3.org/TR/2012/WD-dom-20121206/#dom-domimpleme ntation-createdocumenttype">
5 <script src="../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests that DOMImplementation.createDocumentType() properly sets the node's document to the associated document of the context object.");
10 var docType = document.implementation.createDocumentType("html", null, null);
11 shouldBe("docType.ownerDocument", "document");
12 var newDocument;
13 shouldNotThrow("newDocument = document.implementation.createDocument('', null, d ocType)");
14 shouldBe("newDocument.doctype", "docType");
15 shouldBe("newDocument.doctype.ownerDocument", "newDocument");
16
17 </script>
18 <script src="../js/resources/js-test-post.js"></script>
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698