blob: d9389ecb4f6d0e9ce4ae2e1cc855d5058dafe38b [file] [log] [blame]
<p>Test that createElementNS("", ...) creates an element in null namespace. Per DOM 3 Core,</p>
<pre>In programming languages where empty strings can be differentiated from null, empty strings, when given as a namespace URI, are converted to null.</pre>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
var elem = document.createElementNS("", "p");
document.write(elem.namespaceURI === null ? "PASS" : ("FAIL: '" + elem.namespaceURI + "'"));
</script>