Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Chrome/Chromium, $$() is a shortcut for document.querySelectorAll().


Only in the Webkit Inspector console, nowhere else. $ is also a shortcut (I forget for what though).

They're over-written by a page if that page defines that variable globally in some way.


It is also used by prototype.js - http://api.prototypejs.org/dom/dollar-dollar/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: