[Webkit-unassigned] [Bug 85937] New: [Chromium] Web Inspector: Console displays elements of HTMLOptionsCollection as undefined
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 8 17:58:02 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=85937
Summary: [Chromium] Web Inspector: Console displays elements of
HTMLOptionsCollection as undefined
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: data:text/html,<form><select id="s"><option
value="1">one</option><option
value="2">two</option></select></form>
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: yosin at chromium.org
CC: timothy at apple.com, rik at webkit.org, keishi at webkit.org,
pmuellr at yahoo.com, joepeck at webkit.org,
pfeldman at chromium.org, yurys at chromium.org,
bweinstein at apple.com, apavlov at chromium.org,
loislo at chromium.org
ConsoleMessage._printArray takes elements of array object of inspector's internal representation from numeric property name. However, HTMLOptionsCollection object don't have such properties.
Even though, getting a element works in scripts in original HTML and JavaScript console.
Below is sample steps:
1. Visit data:text/html,<form><select id="s"><option value="1">one</option><option value="2">two</option></select></form>
2. Invoke JavaScript Console
3. Enter "keys(documents.forms)"
["0", "length"]
4. Enter "keys(s.options)"
["selectedIndex", "length"]
5. Enter: "s.options
[]
Note: Safari's JavaScript console works fine.
--
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