blob: 3805953becc81e6798ce87e8a01aef17cb6bc0be [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("Test that setAttributeNS with a null namespaceURI actually sets it to the value null and not a string with the contents 'null'.");
window.elem = document.createElementNS('http://www.example.org', 'test');
elem.setAttributeNS(null, 'name', 'value');
shouldBeNull('elem.attributes[0].namespaceURI');
</script>
<script src="../../resources/js-test-post.js"></script>