Skip to content

no-unknown-property does not allow crossorigin on link tags #1656

@msmichellegar

Description

@msmichellegar

In the latest release, there was a fix for the crossorigin property (related to #1642). The updated rule only allows the crossorigin property on script, img and video tags. This means an error is now thrown for the crossorigin property on link tags.

You can see here that crossorigin is an accepted attribute of link tags. I would therefore expect the linter to allow them. Something like this should pass:

<link href="path/to/file.ext" crossorigin="anonymous" />

Unless there's something I'm missing, happy to make a PR to fix this 🌈

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