Document Methods Flashcards

1
Q

adoptNode(node)

A

Adopts a node from another document to this document, and returns the adopted node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

createAttribute()

A

Creates an attribute node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

createComment()

A

Creates a Comment node with the specified text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

createDocumentFragment()

A

Creates an empty DocumentFragment node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

createElement()

A

Creates an Element node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

createTextNode()

A

Creates a Text node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

getElementById()

A

Returns the element that has the ID attribute with the specified value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

getElementsByClassName()

A

Returns an array-like object of all child elements which have all of the given class names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

getElementsByTagName()

A

Returns a NodeList containing all elements with the specified tagname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

importNode()

A

Imports a node from another document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

querySelector()

A

Returns the first element matching the specified CSS selector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

querySelectorAll()

A

Returns a NodeList containing all elements that match the specified CSS selector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly