Re: [dom] Supported property names for NamedNodeMap (#141)

Or maybe skip them when we have element in HTML namespace and owner is HTML Document (I mean all attr's names what have minimum one capital letter because, what I see now, `hasOwnProperty`, `[]` and `getOwnPropertyDescriptor` always make lowercasing). I don't know what will be correct in ES side.

This all exist because using setAttributeNS() for element in HTML namespace and owner is HTML Document. In other cases it is more predictable.
```
<script>

 var newP = document.createElementNS("", "P");
 newP.setAttributeNS("www.test1.com", "A:new", "Test1");
 
 console.log(newP.attributes); // NamedNodeMap [ A:new="Test1" ]
 console.log(Object.getOwnPropertyNames(newP.attributes)); // Array [ "0", "A:new" ]
 console.log(newP.attributes.hasOwnProperty("A:new")); // true
 console.log(newP.attributes["A:new"]); // A:new="Test1"
 console.log(Object.getOwnPropertyDescriptor(newP.attributes, "A:new")); // Object { value: A:new="Test1", writable: false, enumerable: false, configurable: true }
 
</script>
```

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/141#issuecomment-169208285

Received on Wednesday, 6 January 2016 03:18:25 UTC