NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator]; for (var x of document.querySelectorAll('p')) { console.log(x); }
@DavidBruant Context is Chromium 38 which has for-of but not no iterable NodeLists yet: https://twitter.com/mathias/status/521953574398738433 … https://code.google.com/p/chromium/issues/detail?id=401699 …
-
-
@mathias oh ok, sorry, I had missed that tweet.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.