Vue-next:   is converted to normal space character

Created on 8 Apr 2020  路  3Comments  路  Source: vuejs/vue-next

Version

3.0.0-alpha.11

Reproduction link

link to https://vue-next-template-explorer.netlify.com/...

Steps to reproduce

Use   anywhere - see compiled template...

What is expected?

  (among other special characters) should not just be converted to their "normal" counterparts - there's lots of info here: https://www.w3.org/html/wg/wiki/HTMLCharacterUsage

But non-breaking space (#00A0) is not actually a space (#0020)

What is actually happening?

the   is converted to a normal space - it's not even escaped...

bug compiler

Most helpful comment

@mika76 a non-breaking whitespace is visually indistinguishable from a normal whitespace in the source code, but they are in fact different characters. If you copy it and compare it to a normal space in your console you'll see.

All 3 comments

Hey @yyx990803 - I see the changes and have played with them a bit in the template explorer - but it doesn't look like the   issue is sorted - it's still getting converted to a normal space.

@mika76 a non-breaking whitespace is visually indistinguishable from a normal whitespace in the source code, but they are in fact different characters. If you copy it and compare it to a normal space in your console you'll see.

Ah I see - brilliant - thanks!

Was this page helpful?
0 / 5 - 0 ratings