Professional Documents
Culture Documents
Sign in
Search MDN
Technologies ▼
Feedback ▼
ParentNode.children
English ▼
Syntax
Value
An HTMLCollection which is a live, ordered collection of the DOM elements which are
children of node . You can access the individual child nodes in the collection by using either the
item() method on the collection, or by using JavaScript array-style notation.
If the node has no element children, then children is an empty list with a length of 0 .
Example
https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children 1/8
12/18/2019 ParentNode.children - Web APIs | MDN
Polyfill
Specification
Specification Status Comment
https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children 2/8
12/18/2019 ParentNode.children - Web APIs | MDN
Browser compatibility
Update compatibility data on GitHub
children
Chrome 1
Edge Yes
Firefox 3.5
IE 9
Opera 10
Safari 4
Firefox Android 4
Opera Android ?
Safari iOS 9
Chrome 29
Edge 16
Firefox 25
IE No
Opera 16
Safari 9
https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children 3/8
12/18/2019 ParentNode.children - Web APIs | MDN
Firefox Android ?
Opera Android ?
Safari iOS 9
Support on SVGElement
Chrome Yes
Edge 16
Firefox Yes
IE No
Opera ?
Safari 9
Firefox Android ?
Opera Android ?
Safari iOS 9
Full support
No support
Compatibility unknown
See also
The ParentNode and ChildNode interfaces.
Node.childNodes
Syntax
Example
Polyfill
Specification
Browser compatibility
See also
Related Topics
Document Object Model
ParentNode
▼ Properties
childElementCount
children
firstElementChild
lastElementChild
https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children 5/8
12/18/2019 ParentNode.children - Web APIs | MDN
▼ Methods
append()
prepend()
querySelector()
querySelectorAll()
▼ Implemented by:
Document
DocumentFragment
Element
AbortController
AbortSignal
AbstractRange
Attr
ByteString
CDATASection
CSSPrimitiveValue
CSSValue
CSSValueList
CharacterData
ChildNode
Comment
CustomEvent
DOMConfiguration
DOMError
DOMErrorHandler
DOMException
DOMImplementation
https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children 6/8
12/18/2019 ParentNode.children - Web APIs | MDN
DOMImplementationList
DOMImplementationRegistry
DOMImplementationSource
DOMLocator
DOMObject
DOMParser
DOMPoint
DOMPointInit
DOMPointReadOnly
DOMRect
DOMString
DOMTimeStamp
DOMTokenList
DOMUserData
Document
DocumentFragment
DocumentType
Element
ElementTraversal
Entity
EntityReference
Event
EventTarget
HTMLCollection
MutationObserver
Node
NodeFilter
NodeIterator
NodeList
NonDocumentTypeChildNode
ProcessingInstruction
https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children 7/8
12/18/2019 ParentNode.children - Web APIs | MDN
PromiseResolver
Range
StaticRange
Text
TextDecoder
TextEncoder
TimeRanges
TreeWalker
TypeInfo
USVString
UserDataHandler
XMLDocument
you@example.com
Sign up now
https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children 8/8