span class="&amp;&lt;&gt;foo"></span>
<span id="test2">
  <span ~=""></span>
  <span ~></span>
  <span></span>
</span>
<script>
var XML = "http://www.w3.org/XML/1998/namespace"
var XMLNS = "http://www.w3.org/2000/xmlns/"

// toggleAttribute exhaustive tests
// Step 1
test(function() {
  var el = document.createElement("foo")
  for (var i = 0; i < invalid_names.length; i++) {
    assert_throws_dom("INVALID_CHARACTER_ERR", function() { el.toggleAttribute(invalid_names[i], true) })
  }
  for (var i = 0; i < in