[Webkit-unassigned] [Bug 17296] forEach does not work with document.querySelectorAll

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 10 15:35:31 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17296





------- Comment #2 from richy at smilingsouls.net  2008-02-10 15:35 PDT -------
Thanks for explaining that.

It's a pretty common thing to do with JavaScript frameworks.  Makes it easier
to enumerate over elements.

I use Dean Edwards's Base2... which allows this kind of traversal, and it seems
like I've seen similar code in use with other more popular frameworks, but I'm
not sure about that.

Dean shows how document.querySelectorAll can be used with forEach here:
http://dean.edwards.name/weblog/2007/03/yet-another/

Though, reading that again, he made that distinction clear too, so I understand
why it isn't expected to work, but I think it'd be pretty useful.  I use that
all over the place in my apps, makes the code more readable and compact.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list