[whatwg] Proposal: q and qq for document.querySelector and document.querySelectorAll

Leon Gilyadov leon.gilyadov at gmail.com
Wed Sep 18 01:14:06 PDT 2013


*The problem:*
document.querySelector and document.querySelectorAll
are long and used a lot.

Lines in the code are long.

*Proposal:*
q('.my-div')
will be equal to:
document.querySelector('.my-div)

qq('.my-div')
will be equal to:
document.querySelectorAll('.my-div')


--Leon Gilyadov.


More information about the whatwg mailing list