-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
-
-
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
White space stripped between <a> and <span> where it shouldn't (in comparison to HTML) #9127
Comments
Duplicate of #9021 |
@Justineo thanks for the pointer to the issue! I did search the tracker, but missed it. However I disagree with that this is resolved. I'm continuing here, because the reproduction link of #9021 does not work anymore and here are different details that explain why this is a problem to vue users. Part of the problem is that render behaviour of browsers would usually leave on space in, <span> a </span> <span> b </span> and Vue components cannot be easily written to behave the same, because |
Version
2.5.17
Reproduction link
https://codesandbox.io/s/6j7kz64znr
Steps to reproduce
When using two tags like and in a template of a single file component, with some white space in between.
Examples (as in the link)
results in `Vue.jsis nice.'
What is expected?
Expected is the regular handling of white space in browsers that remove all, but one white space.
What is actually happening?
The last space is removed.
https://codepen.io/anon/pen/RqEoOr shows the regular handling of this piece of html in a browser (without other css options set).
The problem was noticed when trying to translate text with vue-gettext, where is poses an extra challenge, see Polyconseil/vue-gettext#80
The text was updated successfully, but these errors were encountered: