-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method transform has wrong current index #1259
Comments
@sx-motive can you add |
This may not fix your issue, but I released a version that passed index as the 2nd argument in |
@remarkablemark sure, here is output with |
Thanks @sx-motive. So it looks like the node index is correctly resetting itself when the parser is traversing the nested children: <p><!-- 0 -->
first<!-- 0 -->
</p>
<span><!-- 1 -->
second<!-- 0 -->
</span>
<div><!-- 2 -->
third<!-- 0 -->
</div> Let me know if that makes sense. |
@remarkablemark yes, now I see how this works, thanks for answers. |
Hi, I probably misunderstood something, but I didn't find any answers or related problems, so please help to make this clear
Expected Behavior
output: 0, 1, 2
Actual Behavior
output: 0, 1, 0, 2
Steps to Reproduce
code in Expected Behavior
Environment
The text was updated successfully, but these errors were encountered: