You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The patched class setAttribute calls attributeChangedCallback without converting value to a string. This can lead to unexpected behavior when passing numeric or otherwise non-string values.
…ute()
Any value set via `setAttribute` gets converted to a plain string, because
that's how HTML attributes work. However, this polyfil was missing this step,
and it was passing the raw non-string value to the custom element
attributeChangedCallback. This behavior is wrong, and it is a regression when
compared to not using the polyfill.
Fixeswebcomponents#607, supersedes webcomponents#616
Description
The patched class
setAttribute
callsattributeChangedCallback
without converting value to a string. This can lead to unexpected behavior when passing numeric or otherwise non-string values.Example
Playground
Steps to reproduce
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: