 {
  var el = document.createElement("div")
  el.setAttribute("foo", "bar")
  var attr = el.attributes[0]
  assert_equals(attr.ownerElement, el)
  el.removeAttribute("foo")
  assert_equals(attr.ownerElement, null)
}, "Attribute loses its owner when removed")

test(function() {
  var el = document.createElement("div")
  el.setAttribute("foo", "bar")
  var attr = el.attributes[0]
  var attrNode = el.getAttributeNode("foo");
  var attrNodeNS = el.getAttributeNodeNS("", "foo");
  assert_equals(attr, attrNode);
