NodeList.prototype.__proto__ = Array.prototype lets you do document.querySelectorAll(…).forEach(…) etc (IE11 supports __proto__ too)
-
-
@mathias@Paul_Kinlan yeah, I'm against messing with objects you don't own. I just wish the DOM fixed this. -
@jaffathecake@mathias@Paul_Kinlan agree! Hey@annevk, can we fix this?
End of conversation
New conversation -
-
-
@mathias@Paul_Kinlan@jaffathecake Stuff like this is fine for your own code; just don’t release an OSS component that does this. :)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.