trNode);
  assert_equals(el.attributes.length, 0);
}, "Basic functionality of removeAttributeNode")

test(function() {
  var el = document.createElement("div")
  el.setAttribute("foo", "bar")
  var attrNode = el.getAttributeNode("foo");
  var el2 = document.createElement("div");
  assert_throws_dom("INUSE_ATTRIBUTE_ERR", function(){el2.setAttributeNode(attrNode)});
}, "setAttributeNode on bound attribute should throw InUseAttributeError")

// Have to use an async_test to see what a DOMAttrModified listener 