Skip to content

Clear the attribute cursor when moving to the root - #142

Open
rudycelekli wants to merge 1 commit into
antchfx:masterfrom
rudycelekli:fix/root-attribute-cursor-20261101
Open

rudycelekli wants to merge 1 commit into
antchfx:masterfrom
rudycelekli:fix/root-attribute-cursor-20261101

Conversation

@rudycelekli

Copy link
Copy Markdown

Moving an attribute navigator to its configured root leaves the old attribute index active. A subsequent child move then fails, and element roots may still report an attribute. Reset the cursor along with the root node. The regression covers document and element roots reached from an attribute.

Validation at ec18ea5ed4cae4795147e148470027e9885fe83a (base 9429919ed0a2c62f385c010f24095a149a2d672a):

  • Added regression fails on the unchanged base.
  • go test ./... -count=1 passes.
  • go test -race ./... -count=1 passes.
  • git diff --check passes.

Checks above ran locally on macOS; hosted CI and maintainer review remain separate. Prepared and independently reviewed with Codex assistance.

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