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

html tag issue #5134

Closed
Batur24 opened this issue Mar 8, 2017 · 3 comments
Closed

html tag issue #5134

Batur24 opened this issue Mar 8, 2017 · 3 comments

Comments

@Batur24
Copy link

Batur24 commented Mar 8, 2017

Vue.js version

2.0.2

Reproduction Link

https://jsfiddle.net/baturYe/x4m8w2xv/2/
https://jsfiddle.net/baturYe/x4m8w2xv/5/

Steps to reproduce

What is Expected?

template displays correctly

What is actually happening?

I am playing #5097 and found that when put \> in the template string, the result is not expected.

@LinusBorg
Copy link
Member

LinusBorg commented Mar 8, 2017

  • you can't add content to the same named slot multiple times.
  • your child component doesn't output the slot content anywhere
  • the child template has invalid html in line 15

Please explain in more detail what you actually expect, because it's not clear to me. It seems you think that you can concatenate slot contents. You can't, that's not a functionality Vue provides.

I will label this as "needs repo" because the reproduction provided does not work.

@Batur24
Copy link
Author

Batur24 commented Mar 8, 2017

Sorry, I paste the wrong link, I know it's invalid to use like that. Should vue complain about it when it is coded like this?

@LinusBorg
Copy link
Member

LinusBorg commented Mar 8, 2017

Well, that's because the backslash is an escape character in Javascript strings. using \\ leads to the expected result.

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

No branches or pull requests

2 participants