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

Font Tags Stripped by Vue #4348

Closed
khamer opened this issue Nov 30, 2016 · 3 comments
Closed

Font Tags Stripped by Vue #4348

khamer opened this issue Nov 30, 2016 · 3 comments

Comments

@khamer
Copy link

khamer commented Nov 30, 2016

Vue.js version

2.0.2

Reproduction Link

What is Expected?

I would expect <font> tags to be left alone – but if Vue is intentionally stripping invalid HTML tags, I'd expect <blink> and such to be stripped instead.

What is actually happening?

<font> tags appear to be stripped or hidden. Although it's a deprecated tag, other deprecated tags (like <center> and <blink>) aren't stripped, and there's some systems that are sufficiently behind the times (looking at you xdebug) which still render out HTML that contains <font> tags.

Digging a little further, is I remove font from makeMap() for isSVG, then the <font> tags are left alone.

@yyx990803
Copy link
Member

<font> is a valid SVG tag, so it was created with SVG namespace. It is still rendered, just not visible. If you want to explicitly mark it for ignored, use Vue.config.ignoredElements: https://jsfiddle.net/yyx990803/mph4jhLa/1/

@LinusBorg
Copy link
Member

People still use <font>? That element has been deprecated for a while now.

@khamer
Copy link
Author

khamer commented Nov 30, 2016

It's part of the elements that PHP's xdebug uses - https://xdebug.org/docs/display . If it was my own markup, then I would have avoided it.

Thanks @yyx990803!

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

No branches or pull requests

3 participants