-
-
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
textNode removed unexpectedly due to Chrome 55 bug #6601
Comments
Perhaps the reason of the question is a chrome bug.
// In chrome(60) // In chrome(55) & chrome(47) |
The Lines 97 to 103 in 7cea42b
And it seems that Maybe we could attach an extra info to the parent node when patching the dom props in |
I honestly don't think we should cater to such obvious buggy behavior in an outdated version of a browser (it's 6 versions behind). The fix also lets platform-specific code leak into the core patching algorithm. If for some reason your app must be run in an older version of Chrome, you can give the two divs different keys to work around the behavior. Update: it seems old Chrome has a higher market share than I thought... |
This fix doesn't take node type (shouldn't it be 'text' only?) into account and causes other applications to fail: ckeditor/ckeditor5#2016 (comment). The problem was that all inner DOM nodes of the Vue component are expected to be managed by the editor. |
Version
2.4.3
Reproduction link
https://jsfiddle.net/jLrvghtL/8/
Steps to reproduce
What is expected?
The
v-html="status"
could be display correctlyWhat is actually happening?
The status won't be display, if the
status
equaltrue
and the userAgent wereMozilla/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.The text was updated successfully, but these errors were encountered: