[Webkit-unassigned] [Bug 43961] New: Chromium: Object.getOwnPropertyNames(<HTMLOptionsCollection>) does not include indexes.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 13 02:38:04 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=43961
Summary: Chromium:
Object.getOwnPropertyNames(<HTMLOptionsCollection>)
does not include indexes.
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pfeldman at chromium.org
CC: antonm at chromium.org, vitalyr at chromium.org
1. Navigate to the page with <select> element
2. Inspect Element
3. In console type "Object.getOwnPropertyNames($0.options)"
4. Enjoy empty array
The reason is that
V8HTMLOptionsCollection.cpp has desc->InstanceTemplate()->SetIndexedPropertyHandler(V8HTMLOptionsCollection::indexedPropertyGetter, V8HTMLOptionsCollection::indexedPropertySetter, 0, 0);
whereas
V8HTMLCollection.cpp has setCollectionIndexedGetter<HTMLCollection, Node>(desc);
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list