})
  }
}, "When qualifiedName does not match the Name production, an " +
   "INVALID_CHARACTER_ERR exception is to be thrown. (setAttributeNS)")

test(function() {
  var el = document.getElementById("test2")
  for (var i = 0; i < el.children.length; i++) {
    assert_throws_dom("INVALID_CHARACTER_ERR", function() {
      el.children[i].setAttributeNS(null, "~", "test")
    })
  }
}, "When qualifiedName does not match the Name production, an " +
   "INVALID_CHARACTER_ERR exception is to be thrown, even if th