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
Describe the bug
This bug is already described in a few places, #3067, #1434, #3235, I added comment at the end of #1434
Expected behavior
In special, spread attributes to be deleted on undefined or null values.
In general, spread attributes to behave similar to not spread (at runtime).
Severity
Low to medium.
Additional context
Some attributes are deleted with node.removeAttribute() when the value is undefined or null (but not spread attributes)
spread attributes use set_attributes
#1434 was for non-spread attributes. Spread attributes need to be handled differently, because we can't just look up at compile time whether we should be using an attribute or a property.
Is there any difference between this issue and #3067 besides the amount of additional information present? Could this have been a comment on that issue?
Describe the bug
This bug is already described in a few places, #3067, #1434, #3235, I added comment at the end of #1434
Expected behavior
In special, spread attributes to be deleted on
undefined
ornull
values.In general, spread attributes to behave similar to not spread (at runtime).
Severity
Low to medium.
Additional context
Some attributes are deleted with
node.removeAttribute()
when the value isundefined
ornull
(but not spread attributes)spread attributes use
set_attributes
svelte/src/runtime/internal/dom.ts
Line 104 in 7de5d6c
for
undefined
andnull
(worst case
<input { ...{ size: undefined} } >
)Before #3346 data attributes has to use
dataset
(but not spread attributes).Maybe some other rules are not used for spread attr?
Thank you!
The text was updated successfully, but these errors were encountered: