-
-
Notifications
You must be signed in to change notification settings - Fork 33.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
<a> tag is wrongly assumed to be in html namespace instead of svg #6506
Labels
Comments
Please provide an actual reproduction. |
Woops, looks like I messed up the link copy pasting ? Anyway, trying to put one back up together. |
Here's the repro : https://jsfiddle.net/4s3hj82k/ |
12 tasks
yyx990803
pushed a commit
that referenced
this issue
Sep 5, 2017
ztlevi
pushed a commit
to ztlevi/vue
that referenced
this issue
Feb 14, 2018
f2009
pushed a commit
to f2009/vue
that referenced
this issue
Jan 25, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.4.2
Reproduction link
https://jsfiddle.net/4s3hj82k/
Steps to reproduce
Create a template using as the root element
Try to use it in an
What is expected?
I either expected vue to understand that the is supposed to be an SVG a tag (and not an xhtml a tag), or a way for me to override vue's decision and give it the proper namespace (e.g. making svg:a work ?)
What is actually happening?
Vue is creating the tag as an xhtml:a tag, and so the browser doesn't render it.
You can make it render by wrapping it in an . This is undesirable however, for many reasons. Having a way to explicitly tell vue the namespace from which to create the element would be nice.
SVG <a> tag : https://developer.mozilla.org/fr/docs/Web/SVG/Element/a
The text was updated successfully, but these errors were encountered: