Here's the diff I created as an addittion to htmlparser.inc version 1.2. If you add this to your code it will store position of the current node to $iNodePosition variable.
htmlparser.diff
Log in to post a comment.
htmlparser.diff