Returns a list of elements that match a provided selector.
Method of dom/Elementdom/Element
Syntaxvar elementList = element.querySelectorAll();
Parameters selector
A selector or multiple selectors (separated by commas).
Return ValueReturns an object of type DOM NodeDOM Node
A collection of DOM element nodes. The collection may be empty.
NotesThis method differs from the querySelector method by returning a collection of DOM element nodes that match the selector string, rather than only the first element found. Calling this method with an unknown selector (due to the browser not implementing it, or due to typo and such) may throw an exception.
Related specificationsquerySelectorAll
address
b
big
blockQuote
body
button
caption
center
cite
code
col
colGroup
dd
dfn
dir
div
dl
dt
em
fieldSet
form
hn
html
i
img
input type=button
input type=checkbox
input type=file
input type=image
input type=password
input type=radio
input type=reset
input type=submit
input type=text
isIndex
kbd
label
legend
li
listing
marquee
menu
noBR
ol
p
plainText
pre
s
samp
small
span
strike
strong
sub
sup
tBody
td
textArea
tFoot
th
tHead
tr
tt
u
ul
var
xmp
Reference
IElementSelector
Other Resources
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4