Element#index method
-
xmory
nice
-
MadRabbit
just an implementation note
function() { var node = this.parentNode.firstChild, index = 0; while (node !== this) { node = node.nextSibling; index ++; } return index; }that should work faster than
childNodesiteration. I think. gotta check it out. -
MadRabbit
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.