Closed Bug 1146798 Opened 10 years ago Closed 10 years ago

Debugger: HTMLCollection sorted by string, not number

Categories

(DevTools :: Debugger, defect)

37 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 967319

People

(Reporter: zokker13, Unassigned)

Details

Attachments

(1 file)

Attached image debugger_fail.png
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0 Build ID: 20150319212106 Steps to reproduce: Tried to iterate through table elements so I got all tr elements: var tableRows = document.getElementsByTagName("tr"); This returns an HTMLCollection which can be observed by the Debugger. Actual results: The tr elements within the HTMLCollection seem to be sorted by string, not by number. Expected results: The tr elements should be sorted by number. Chrome and IE11 show this without a problem
Component: Untriaged → Developer Tools: Debugger
This was fixed in Firefox 39.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: