Skip to content

[6.x.x] Correct an issue with the Base URI of in-memory documents#218

Merged
adamretter merged 3 commits into
develop-6.x.xfrom
6.x.x/bugfix/base-uri-returns-db-instead-of-document-path
Jun 3, 2026
Merged

[6.x.x] Correct an issue with the Base URI of in-memory documents#218
adamretter merged 3 commits into
develop-6.x.xfrom
6.x.x/bugfix/base-uri-returns-db-instead-of-document-path

Conversation

@adamretter
Copy link
Copy Markdown
Member

Backport of #204

  1. Base URI of in-memory documents is now correctly returned.

  2. The DOM implementation for both persistent and in-memory nodes has been updated to match the W3C DOM spec for org.w3.dom.Node#getBaseURI().

  3. Base URI is now implemented for in-memory DOM Text and Comment Nodes.

Closes #186

Laurettta and others added 3 commits May 1, 2026 10:03
…t path

The xml:base lookup in getBaseURI() was returning empty string when the attribute didn't exist. Removed it so we fall through to getDocumentURI() which gives the correct result.
Closes #186
@adamretter adamretter added this to the elemental-6.10.1 milestone Jun 3, 2026
@adamretter adamretter self-assigned this Jun 3, 2026
@adamretter adamretter added the bug Something isn't working label Jun 3, 2026
@cla-bot cla-bot Bot added the cla-signed label Jun 3, 2026
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Jun 3, 2026

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@adamretter adamretter force-pushed the 6.x.x/bugfix/base-uri-returns-db-instead-of-document-path branch from 18108ef to 4425ce8 Compare June 3, 2026 11:46
@adamretter adamretter merged commit ec385f3 into develop-6.x.x Jun 3, 2026
12 of 14 checks passed
@adamretter adamretter deleted the 6.x.x/bugfix/base-uri-returns-db-instead-of-document-path branch June 3, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cla-signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants