);
  el.setAttributeNS("foo", "a", "");
  el.setAttribute("b", "");
  el.setAttributeNS("", "a", "");
  assert_array_equals(getEnumerableOwnProps1(el.attributes),
                      ["0", "1", "2"])
  assert_array_equals(getEnumerableOwnProps2(el.attributes),
                      ["0", "1", "2"])
  assert_array_equals(Object.getOwnPropertyNames(el.attributes),
                      ["0", "1", "2", "a", "b"])
  for (var propName of Object.getOwnPropertyNames(el.attributes)) {
    assert_true(el.attribute