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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/document-metadata/the-title-element/title.text-02.xhtml

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <title>title.text with comment and element children.</title>
4 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"/>
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-title-text"/>
6 <script src="../../../../../../resources/testharness.js"></script>
7 <script src="../../../../../../resources/testharnessreport.js"></script>
8 </head>
9 <body>
10 <div id="log"></div>
11 <script>
12 try {
13 var title = document.getElementsByTagName("title")[0];
14 while (title.childNodes.length)
15 title.removeChild(title.childNodes[0]);
16 title.appendChild(document.createComment("COMMENT"));
17 title.appendChild(document.createTextNode("TEXT"));
18 title.appendChild(document.createElement("a"))
19 .appendChild(document.createTextNode("ELEMENT"))
20 } catch (e) {
21 }
22 </script>
23 <script>
24 test(function() {
25 assert_equals(title.text, "TEXT");
26 assert_equals(title.textContent, "TEXTELEMENT");
27 })
28 </script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698