aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/content/test_element_attribute.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/content/test_element_attribute.html')
-rw-r--r--src/test/content/test_element_attribute.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/content/test_element_attribute.html b/src/test/content/test_element_attribute.html
index 7455f36bffb..d7ee6a23640 100644
--- a/src/test/content/test_element_attribute.html
+++ b/src/test/content/test_element_attribute.html
@@ -50,6 +50,16 @@
is_not(r2, null, "test5-1, Element.setAttribute('xml:lang').");
}
+ should_throw(function () {
+ test.setAttributeNS("http://example.com", "xmlns", "foo");
+ });
+ should_throw(function () {
+ test.setAttributeNS("http://www.w3.org/2000/xmlns/", "attr", "value");
+ });
+ should_throw(function () {
+ test.setAttributeNS("http://www.w3.org/2000/xmlns/", "prefix:attr", "value");
+ });
+
finish();
</script>
</body>