18 lines
488 B
XML
18 lines
488 B
XML
<html xmlns='http://www.w3.org/1999/xhtml'>
|
|
<head>
|
|
<title>createElement('a:b') in XML</title>
|
|
</head>
|
|
<body>
|
|
<p>FAIL (script didn't run)</p>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
var got = document.createElement('a:b').localName;
|
|
var expected = 'a:b';
|
|
var passed = got == expected;
|
|
document.getElementsByTagName('p')[0].firstChild.data = passed ? 'PASS' : 'FAIL (got: ' + got + ', expected: ' + expected + ')';
|
|
</script>
|
|
</body>
|
|
</html>
|