valid_names.length; i++) {
    assert_throws_dom("INVALID_CHARACTER_ERR", function() { el.toggleAttribute(invalid_names[i]) })
  }
  for (var i = 0; i < invalid_names.length; i++) {
    assert_throws_dom("INVALID_CHARACTER_ERR", function() { el.toggleAttribute(invalid_names[i], false) })
  }
}, "When qualifiedName does not match the Name production, an " +
   "INVALID_CHARACTER_ERR exception is to be thrown. (toggleAttribute)")
test(function() {
  var el = document.getElementById("test2")
  for (var i = 0; 