Bug 160517 - Object.getOwnPropertyNames() on NamedNodeMap fails to return named properties
Summary: Object.getOwnPropertyNames() on NamedNodeMap fails to return named properties
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://dom.spec.whatwg.org/#dom-name...
Keywords: WebExposed
Depends on:
Blocks:
 
Reported: 2016-08-03 11:49 PDT by Chris Dumez
Modified: 2016-08-03 22:28 PDT (History)
10 users (show)

See Also:


Attachments
Patch (7.21 KB, patch)
2016-08-03 11:51 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (7.25 KB, patch)
2016-08-03 11:55 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2016-08-03 11:49:17 PDT
Object.getOwnPropertyNames() on NamedNodeMap fails to return named properties:
- https://dom.spec.whatwg.org/#dom-namednodemap-item

The spec says:
A NamedNodeMap object’s supported property names are the return value of running these steps:

1. Let names be the qualified names of the attributes in this NamedNodeMap object’s attribute list, with duplicates omitted, in order.
2. If this NamedNodeMap object’s element is in the HTML namespace and its node document is an HTML document, then for each name in names, run these substeps:
    1. Let lowercaseName be name, converted to ASCII lowercase.
    2. If lowercaseName is not equal to name, remove name from names.
3. Return names.
Comment 1 Chris Dumez 2016-08-03 11:51:12 PDT
Created attachment 285256 [details]
Patch
Comment 2 Chris Dumez 2016-08-03 11:55:40 PDT
Created attachment 285257 [details]
Patch
Comment 3 WebKit Commit Bot 2016-08-03 22:28:20 PDT
Comment on attachment 285257 [details]
Patch

Clearing flags on attachment: 285257

Committed r204115: <http://trac.webkit.org/changeset/204115>
Comment 4 WebKit Commit Bot 2016-08-03 22:28:25 PDT
All reviewed patches have been landed.  Closing bug.