Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Conversation

@ndw
Copy link
Owner

@ndw ndw commented May 15, 2025

Fix #28

If fixupXmlBase is false, there’s nothing in the document to preserve the base URI of an element when it’s nested inside other elements. In this case, we add a magic attribute to keep track and then do a second top-to-bottom pass to remove the magic attributes and set the base URIs correctly. There’s a time and space cost, but there doesn’t seem to be any other solution.

Fix #28

If `fixupXmlBase` is false, there’s nothing in the document to preserve the base
URI of an element when it’s nested inside other elements. In this case, we add a
magic attribute to keep track and then do a second top-to-bottom pass to remove
the magic attributes and set the base URIs correctly. There’s a time and space
cost, but there doesn’t seem to be any other solution.
@ndw ndw merged commit 24dc5c3 into master May 15, 2025
4 checks passed
@ndw ndw deleted the fix-base-uri branch May 15, 2025 07:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When includes are nested more than two levels deep, the base URI is not preserved

2 participants