Skip to content
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

Embed HTML into an HTML5 SVG fragment got wrong namespace in template #6642

Closed
rrandom opened this issue Sep 19, 2017 · 2 comments
Closed

Embed HTML into an HTML5 SVG fragment got wrong namespace in template #6642

rrandom opened this issue Sep 19, 2017 · 2 comments
Labels

Comments

@rrandom
Copy link

rrandom commented Sep 19, 2017

Version

2.4.4

Reproduction link

https://jsfiddle.net/sn7o1mm3/

Steps to reproduce

Embed <p xmlns="http://www.w3.org/1999/xhtml"> in the svg element

What is expected?

the <p> should be rendered as a htmlElment and show.

What is actually happening?

<p> did not show


seems related to this #6506

@defcc
Copy link
Member

defcc commented Sep 20, 2017

Thanks @rrandom . An issue related with #6506

A svg namespace now is attached to the p element within foreignObject, so it gets an unexpected behavior.

I'm trying to fix it.

PS, it seems also broken with the previous vue version because of the isSVG check, as isSVG checks the lowercased of foreignObject

Something more about https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject

@defcc defcc added the bug label Sep 20, 2017
@javoski
Copy link
Member

javoski commented Sep 22, 2017

Seems that the parameter of method createElementNS is case-sensitive.
https://dom.spec.whatwg.org/#internal-createelementns-steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants