Skip to content

Conversation

underfin
Copy link
Member

fix #954

@underfin underfin changed the title fix(runtime-dom): should patch svg dom prop fix(runtime-dom): should patch svg innerHtml Apr 13, 2020
key in el &&
// onclick="foo" needs to be set as an attribute to work
!(nativeOnRE.test(key) && isString(nextValue))
(!isSVG &&
Copy link
Member

@yyx990803 yyx990803 Apr 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to do

isSVG ? (key in el &&!(nativeOnRE.test(key) && isString(nextValue)) : key === 'innerHTML'

@yyx990803 yyx990803 merged commit 27b5c71 into vuejs:master Apr 13, 2020
@underfin underfin deleted the svg-innerhtml branch April 15, 2020 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v-html with svg does not work

2 participants