-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating dom elements the xml namespace should be respected #1842
Comments
Thanks! Interesting use case. Am I right that it seems something pretty simple to implement? Did you try patching those classes already? Curious if it'll be enough. |
Yes it worked for me. Basically it's this:
and the
|
Creating a PR might take a while for me as I don't have the contributions cla yet :/ |
Feature: Introduced support for creating elements in other XML namespaces. See ckeditor/ckeditor5#1842. Thanks @Sebobo!
I think that ckeditor/ckeditor5-utils#307 and ckeditor/ckeditor5-engine#1798 are enough to close this ticket. If support for xmlns will be needed in other places too, let's open new tickets for those. Thanks @Sebobo! |
Is this a bug report or feature request? (choose one)
🐞 Bug report
💻 Version of CKEditor
CKEditor Engine 13.1.1
📋 Steps to reproduce
✅ Expected result
The icon should be rendered and the SVG and USE tags should be valid SVG nodes instead of simple document nodes.
❎ Actual result
The icon is not shown and the SVG and USE nodes are normal DOM elements not
SVGSVGElement
when inspecting the nodes.📃 Other details that might be useful
The issue is because in
domconverter.js
andcreateelement.js
onlycreateElement
is used and no check is there that looks for anxmlns
attribute and then usescreateElementNS
instead.I can create a PR for this. It worked well when I modified the two mentioned classes. I'm not sure if there are other places I have to check.
The text was updated successfully, but these errors were encountered: