[Webkit-unassigned] [Bug 33983] New: Setting <Select>.options.length is broken once the inspector has come up
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 21 17:57:32 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=33983
Summary: Setting <Select>.options.length is broken once the
inspector has come up
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
URL: data:text/html;charset=utf-8,<!DOCTYPE%20html><select%
20id%3D's'><option>a</option><option>b</option><option
>c</option><option>d</option><option>e</option><option
>f</option><option>g</option></select>%0A<input%20type
%3D'checkbox'%20id%3D'c'></input>%0A<script>function%2
0$(i)%20{%20return%20document.getElementById(i);%20}%0
A$('c').onchange%20%3D%20function()%20{%20$('s').optio
ns.length%20%3D%200;%20}</script>
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jamesr at chromium.org
CC: jar_webkit at roskind.com
Open the test page and click the checkbox - the select is empty. Then reload
the page, hit 'Inspect Element' anywhere on the page, and click the checkbox
again. This time it only removes ~half the <option>s from the <select>,
rounded down. This appears to be fairly consistent.
I'm guessing that some inspector code is causing the HTMLSelectElement's
listItems to be recalculated in the middle of removing the children - probably
by the inspector touching some field that triggers it.
--
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