Skip to content

Conversation

@iainh
Copy link

@iainh iainh commented Dec 28, 2025

The original code compared child_idx != parent.first_child_idx which didn't account for skipped text/comment nodes.

For example, prior to this change the summary element in the following code was considered in the wrong position:

<details>
	<!-- Comment -->
	<summary></summary>
</details>

After changing to track flow elements instead it is valid.

The original code compared `child_idx != parent.first_child_idx` which
didn't account for skipped text/comment nodes.

For example, prior to this change the summary element in the following
code was considered in the wrong position:

<details>
	<!-- Comment -->
	<summary></summary>
</details>

After changing to track flow elements instead it is valid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant