Skip to content

no-javascript-urls for relative URLs #15

@diogoalex01

Description

@diogoalex01

I was using this linter and I noticed that the no-javascript-urls rule, when linting relative URLs, on situations such as:

<a href="/whatever">Whatever</a>

The following error was thrown:

TypeError [ERR_INVALID_URL]: Invalid URL

I believe it has to do with the URL() constructor used requiring the base URL when the URL is relative.

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