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

foreignObject :: create-node builds foreignObject in HTML namespace - #85

Merged
cjohansen merged 1 commit into
cjohansen:mainfrom
gersak:fix/foreignObject-element-namespace
Oct 31, 2026
Merged

cjohansen merged 1 commit into
cjohansen:mainfrom
gersak:fix/foreignObject-element-namespace

Conversation

@gersak

@gersak gersak commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Hi,

I'm reporting that creating foreignObject node is broken. The get-ns fn doesn't recognise if it is called for children elements or for current element.

foreignObject is supposed to be SVG namespaced but its children should be HTML namespaced. This patch adds ns distinction at element level and children level to fix this.

Currently (get-ns headers) for foreignObject header returns nil -> HTML namespace

@cjohansen
cjohansen merged commit 6281c23 into cjohansen:main Oct 31, 2026
1 check passed
@cjohansen

Copy link
Copy Markdown
Owner

Thanks 👍

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.

2 participants