Skip to content

no-incompatible-type-binding on HTML role Attribute too restrictive #89

@ghost

Description

If we specify multiple roles on an html element like

<div role="button listitem"></div>

lit-analyzer surfaces an error because it tries to match the role attribute to exactly ONE role. However, the spec allows for a list of roles. I tried to dig into the code a little bit and it seems lit-analyzer gets part of this logic from vscode-html-languageservice But perhaps is being too strict or using it incorrectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions