Proposal: Element.elementIndex, Node.nodeIndex #546
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
The Element.elementIndex property returns integer value indicating the position of the element relative to its adjacent elements.
The Node.nodeIndex property returns an integer value indicating the position of the node relative to its adjacent nodes, except comment nodes.
Syntax
Example
Implementation
If the element is not part of the HTML DOM - both functions returns -1.
Possible use
The text was updated successfully, but these errors were encountered: