Skip to content

Conversation

ycmjason
Copy link
Contributor

@ycmjason ycmjason commented May 1, 2020

This PR is a variation of #1092. Instead of creating the new element to check if it accept string, set the current element directly and catch type error.

I think this approach has a fallback tho: Some prop like <video>.volume will accept ''. So passing nullish value will mean setting volume to ''. Which is quite a weird behaviour imo.

fix #1049

@yyx990803 yyx990803 closed this in 20bc7ba May 1, 2020
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.

.prop is casting null-ish values to empty strings

1 participant