A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/issues/4758 below:

Parser fails on tags with one space inside a <pre> tag · Issue #4758 · vuejs/vue · GitHub

Vue.js version

2.1.10

Reproduction Link

https://jsfiddle.net/blackjid/br2h9pko/1/

Steps to reproduce

Have and element with just one space inside a <pre> tag element.

<div id="app">
  <pre>
    <span> </span>
  </pre>
</div>

and initialize vue in a parent element

What is Expected?

Vue initializes correctly.

What is actually happening?

An exception is thrown.

vue.js:7105 Uncaught TypeError: Cannot read property 'text' of undefined
    at Object.chars (vue.js:7105)
    at parseHTML (vue.js:6401)
    at parse (vue.js:6923)
    at compile$1 (vue.js:8003)
    at compile$$1 (vue.js:8425)
    at compileToFunctions (vue.js:8458)
    at Vue$3.$mount (vue.js:8536)
    at Vue$3.Vue._init (vue.js:3379)
    at new Vue$3 (vue.js:3427)
What did I try

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4