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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/documents/dom-tree-accessors/document.getElementsByName/document.getElementsByName-namespace-xhtml.xhtml

Issue 1515563002: Import web-platform-tests@5dbe45af3ad3a933c03187c72f1c12cbe2877703 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <title>getElementsByName and foreign namespaces</title> 3 <title>getElementsByName and foreign namespaces</title>
4 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"/> 4 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"/>
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-gete lementsbyname"/> 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-gete lementsbyname"/>
6 <link rel="stylesheet" href="../../../../../../../resources/testharness.css"/> 6 <link rel="stylesheet" href="../../../../../../../resources/testharness.css"/>
7 <script src="../../../../../../../resources/testharness.js"></script> 7 <script src="../../../../../../../resources/testharness.js"></script>
8 <script src="../../../../../../../resources/testharnessreport.js"></script> 8 <script src="../../../../../../../resources/testharnessreport.js"></script>
9 </head> 9 </head>
10 <body> 10 <body>
(...skipping 13 matching lines...) Expand all
24 var ps = document.getElementById("test") 24 var ps = document.getElementById("test")
25 .getElementsByTagName("p"); 25 .getElementsByTagName("p");
26 assert_equals(document.getElementsByName("math").length, 1); 26 assert_equals(document.getElementsByName("math").length, 1);
27 assert_equals(document.getElementsByName("math")[0], ps[0]); 27 assert_equals(document.getElementsByName("math")[0], ps[0]);
28 assert_equals(document.getElementsByName("svg").length, 1); 28 assert_equals(document.getElementsByName("svg").length, 1);
29 assert_equals(document.getElementsByName("svg")[0], ps[1]); 29 assert_equals(document.getElementsByName("svg")[0], ps[1]);
30 }); 30 });
31 </script> 31 </script>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698