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

Unified Diff: LayoutTests/imported/web-platform-tests/html/syntax/parsing/Element.getElementsByTagName-foreign-01.html

Issue 1164243002: W3C Test: Import web-platform-tests/html/syntax. (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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/imported/web-platform-tests/html/syntax/parsing/Element.getElementsByTagName-foreign-01.html
diff --git a/LayoutTests/imported/web-platform-tests/html/syntax/parsing/Element.getElementsByTagName-foreign-01.html b/LayoutTests/imported/web-platform-tests/html/syntax/parsing/Element.getElementsByTagName-foreign-01.html
new file mode 100644
index 0000000000000000000000000000000000000000..068513c93945a6ba7de893455ca0fdce090c6f8e
--- /dev/null
+++ b/LayoutTests/imported/web-platform-tests/html/syntax/parsing/Element.getElementsByTagName-foreign-01.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<title>getElementsByTagName and font</title>
+<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
+<link rel="help" href="https://dom.spec.whatwg.org/#dom-element-getelementsbytagname">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#parsing">
+<script src="../../../../../resources/testharness.js"></script>
+<script src="../../../../../resources/testharnessreport.js"></script>
+<div id="log"></div>
+<div id="test">
+<font></font>
+<svg><font/></svg>
+</div>
+<script>
+var HTML = "http://www.w3.org/1999/xhtml", SVG = "http://www.w3.org/2000/svg";
+var wrapper = document.getElementById("test");
+test(function() {
+ assert_equals(wrapper.getElementsByTagName("FONT").length, 1);
+ assert_equals(wrapper.getElementsByTagName("FONT")[0].namespaceURI, HTML);
+}, "Upper-case font")
+test(function() {
+ assert_equals(wrapper.getElementsByTagName("font").length, 2);
+ assert_equals(wrapper.getElementsByTagName("font")[0].namespaceURI, HTML);
+ assert_equals(wrapper.getElementsByTagName("font")[1].namespaceURI, SVG);
+}, "Lower-case font")
+</script>

Powered by Google App Engine
This is Rietveld 408576698