Skip to content

Spread attributes behaves not like compiled #3357

Closed
@cvlab

Description

@cvlab

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

node[key] = attributes[key];

for undefined and null

(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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions