Skip to main content
canisoon
Node.compareDocumentPosition()
98.96
DOM
Compares the relative position of two nodes to each other in the DOM tree.
Further reading:
Can I use page for: Node.compareDocumentPosition()
MDN Web Docs - Node.compareDocumentPosition