- From: ArkadiuszMichalski <notifications@github.com>
- Date: Tue, 05 Jan 2016 18:12:13 -0800
- To: whatwg/dom <dom@noreply.github.com>
Received on Wednesday, 6 January 2016 02:12:43 UTC
I don't have deep knowlage around all ECMAScript stuff so I have to ask, in this example (test in Firefox): ``` <script> var newP = document.createElement("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")); // false console.log(newP.attributes["A:new"]); // undefined console.log(Object.getOwnPropertyDescriptor(newP.attributes, "A:new")); // undefined </script> ``` Returning "A:new" by `getOwnPropertyNames()` when other methods return false/undefined is correct/intend? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/141#issuecomment-169197535
Received on Wednesday, 6 January 2016 02:12:43 UTC