Y
Hacker News
new
|
ask
|
show
|
jobs
by
Timmy_C
5038 days ago
Yeah, Sizzle will grab an element using `document.getElementById()` but only after checking the nodeType of the context, ensuring the selector is a string and running the selector through a regular expression.