[Webkit-unassigned] [Bug 159058] options property of a multiple HTMLSelectElement has duplicate items

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 23 12:06:02 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=159058

--- Comment #2 from David Gasperoni <mcdado at gmail.com> ---
Created attachment 281924
  --> https://bugs.webkit.org/attachment.cgi?id=281924&action=review
Testcase with steps to reproduce

I copy-pasted directly from the page where I experienced this behaviour, which is breaking JS code a loop (the value of attribute 'length' is smaller than the amount of elements in the 'options' array).

To test, proceed as following:

1. Open file.
2. Open Web Inspector.
3. Select the <select> tag in the page.
4. Type $0.length in the Console // results 45
5. Type $0.options and expand the HTMLOptionsCollection in the Console.

You'll see a list of 92 elements. (see screenshot here: http://cl.ly/1s232B3L1s2Y)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160623/0245941b/attachment.html>


More information about the webkit-unassigned mailing list