Skip to content
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

fix(runtime-dom): should patch svg innerHtml #956

Merged
merged 3 commits into from
Apr 13, 2020

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