Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<title>getElementsByTagName and font</title>
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
<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>
test(function() {
assert_equals(document.getElementsByTagName("FONT").length, 1);
assert_equals(document.getElementsByTagName("FONT")[0].namespaceURI, HTML);
}, "Upper-case font")
test(function() {
assert_equals(document.getElementsByTagName("font").length, 2);
assert_equals(document.getElementsByTagName("font")[0].namespaceURI, HTML);
assert_equals(document.getElementsByTagName("font")[1].namespaceURI, SVG);
}, "Lower-case font")
</script>