[Webkit-unassigned] [Bug 49501] console.log(document.getElementsByTagName(..)) outputs wrong value when DOM is later modified

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 15 10:35:52 PST 2010


Evan Martin <evan at chromium.org> changed:

           What    |Removed                     |Added
            Summary|Removing an HTML node       |console.log(document.getEle
                   |causes an earlier(!!) query |mentsByTagName(..)) outputs
                   |to not see it               |wrong value when DOM is
                   |                            |later modified

--- Comment #6 from Evan Martin <evan at chromium.org>  2010-11-15 10:35:52 PST ---
With another day's perspective on my code.

=> prints the list with only the second one

var x = document.getElementsByTagName('ul')[0];
=> x successfully is the first (missing) item.

So it's clear that document.getElementsByTagName is returning the right thing, and it's just the console.log that is confusing.  I'll retitle the bug to something less mysterious.

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