Skip to content

textNode removed unexpectedly due to Chrome 55 bug #6601

@Peter-WF

Description

@Peter-WF

Version

2.4.3

Reproduction link

https://jsfiddle.net/jLrvghtL/8/

Steps to reproduce

<div id="app">
  <div v-if="status" v-html="status"></div>
  <div v-else class="status">else</div>
  <button @click="toggleEdit">
    toggleEdit
  </button>
</div>
new Vue({
  el: '#app',
  data: {
    status: false
  },
  methods: {
    toggleEdit: function() {
      this.status = !this.status
    }
  }
})

What is expected?

The v-html="status" could be display correctly

What is actually happening?

The status won't be display, if the status equal true and the userAgent were Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36, unless we replace span with other tag.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions