Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromvuejs/vue

Commit0f2cb09

Browse files
committed
fix: work around old Chrome bug
fixvuejs#6601
1 parentdd50543 commit0f2cb09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/platforms/web/runtime/modules/dom-props.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {
2828
if(key==='textContent'||key==='innerHTML'){
2929
if(vnode.children)vnode.children.length=0
3030
if(cur===oldProps[key])continue
31+
// #6601 work around Chrome version <= 55 bug where single textNode
32+
// replaced by innerHTML/textContent retains its parentNode property
33+
if(elm.childNodes.length===1){
34+
elm.removeChild(elm.childNodes[0])
35+
}
3136
}
3237

3338
if(key==='value'){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp