Skip to content

Duplicate attributes are not handled the same than in the HTML specification. #242

@stof

Description

@stof

Parsing a document containing <button type="submit" class="btn btn-outline-secondary rounded-right" type="button">Test</button> produces a DOM element with a type attribute set to button.
However, the HTML specification explicitly says that duplicate attributes must be ignored: https://html.spec.whatwg.org/multipage/parsing.html#parse-error-duplicate-attribute This means that the first one should win, giving a type of submit.

See symfony/symfony#52889 for the original report

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions