Skip to content
Trevor Rowbotham edited this page Jun 10, 2021 · 3 revisions

Table of Contents

✔ = Implemented ❌ = Not Implemented

Node

Feature Status Notes
nodeType
nodeName
baseURI
isConnected
ownerDocument
getRootNode()
parentNode
parentElement
hasChildNodes()
firstChild
lastChild
previousSibling
nextSibling
nodeValue
textContent
normalize()
cloneNode()
isEqualNode()
isSameNode()
compareDocumentPosition()
contains()
lookupPrefix()
lookupNamespaceURI()
isDefaultNamespace()
insertBefore()
appendChild()
replaceChild()
removeChild()

NonElementParentNode

Feature Status Notes
getElementById()

ParentNode

Feature Status Notes
children
firstElementChild
lastElementChild
childElementCount
prepend()
append()
replaceChildren()
querySelector()
querySelectorAll()

NonDocumentTypeChildNode

Feature Status Notes
previousElementSibling
nextElementSibling

ChildNode

Feature Status Notes
before()
after()
replaceWith()
remove()

Slottable

Feature Status Notes
assignedSlot

Document

extends Node

includes NonElementParentNode

includes ParentNode

Feature Status Notes
implementation
URL
documentURI
compatMode
characterSet
charset
inputEncoding
contentType
doctype
documentElement
getElementsByTagName()
getElementsByTagNameNS()
getElementsByClassName()
createElement() Does not accept ElementCreationOptions
createElementNS() Does not accept ElementCreationOptions
createDocumentFragment()
createTextNode()
createCDATASection()
createComment()
createProcessingInstruction()
importNode()
adoptNode()
createAttribute()
createAttributeNS()
createEvent()
createRange()
createNodeIterator()
createTreeWalker()

DOMImplementation

Feature Status Notes
createDocumentType()
createDocument()
createHTMLDocument()
hasFeature()

DocumentType

extends Node

includes ChildNode

Feature Status Notes
node
publicId
systemId

DocumentFragment

extends Node

includes NonElementParentNode

includes ParentNode

Feature Status Notes
constructor() Use Document.createDocumentFragment() instead

ShadowRoot

extends DocumentFragment

Feature Status Notes
mode
delegatesFocus
slotAssignment
host
innerHTML

Element

extends Node

includes Slottable

includes ParentNode

includes NonDocumentTypeChildNode

includes ChildNode

Feature Status Notes
namespaceURI
prefix
localName
tagName
id
className
classList
slot
attributes
getAttributeNames()
getAttribute()
getAttributeNS()
setAttribute()
setAttributeNS()
removeAttribute()
removeAttributeNS()
toggleAttribute()
hasAttribute()
hasAttributeNS()
getAttributeNode()
getAttributeNodeNS()
setAttributeNode()
setAttributeNodeNS()
remoteAttributeNode()
attachShadowRoot()
shadowRoot
closest()
matches()
getElementsByTagName()
getElementsByTagNameNS()
getElementsByClassName()
insertAdjacentElement()
insertAdjacentText()
insertAdjacentHTML()
innerHTML Setter does nothing on XML documents
outerHTML Setter does nothing on XML documents

Attr

extends Node

Feature Status Notes
namespaceURI
prefix
localName
name
value
ownerElement
specified

CharacterData

Note: All text is UTF-8, which means that any offsets should be specified in UTF-8 code points, rather than UTF-16 code units.

extends Node

includes NonDocumentTypeChildNode

includes ChildNode

Feature Status Notes
data
length
substringData()
appendData()
insertData()
deleteData()
replaceData()

Text

extends CharacterData

includes Slottable

Feature Status Notes
constructor() Use Docuement.createTextNode() instead
splitText()
wholeText

CDATASection

extends Text

ProcessingInstruction

extends CharacterData

Feature Status Notes
target

Comment

extends CharacterData

Feature Status Notes
constructor() Use Document.createComment() instead

AbstractRange

Feature Status Notes
startContainer
startOffset
endContainer
endOffset
collapsed

StaticRange

extends AbstractRange

Feature Status Notes
constructor()

Range

Also known as a live range.

extends AbstractRange

Feature Status Notes
constructor() Use Document.createRange() instead.
commonAncestorContainer
setStart()
setEnd()
setStartBefore()
setStartAfter()
setEndBefore()
setEndAfter()
collapse()
selectNode()
selectNodeContents()
compareBoundaryPoints()
deleteContents()
extractContents()
cloneContents()
insertNode()
surroundContents()
cloneRange()
detatch()
isPointInRange()
comparePoint()
intersectsNode()
stringifier
createContextualFragment()

NodeIterator

Feature Status Notes
root
referenceNode
pointerBeforeReferenceNode
whatToShow
filter
nextNode()
previousNode()
detach()

TreeWalker

Feature Status Notes
root
whatToShow
filter
currentNode
parentNode()
firstChild()
lastChild()
previousSibling()
nextSibling()
previousNode()
nextNode()

NodeFilter

Feature Status Notes
acceptNode()

DOMTokenList

Feature Status Notes
length
item()
contains()
add()
remove()
toggle()
replace()
supports()
value