public compareDocumentPosition(other as Node) as Int throws DOMException:
Compares positions in a tree using node identity, not structural equality.
| Parameter | Description |
|---|---|
other | Node to locate relative to this node. |
Bitmask of DOCUMENT_POSITION flags; zero for the same node.
position = root.compareDocumentPosition(root.firstChild) assert (position & Node.DOCUMENT_POSITION_FOLLOWING) != 0