Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-javascript-urls for relative URLs #15

Open
diogoalex01 opened this issue Feb 3, 2021 · 0 comments
Open

no-javascript-urls for relative URLs #15

diogoalex01 opened this issue Feb 3, 2021 · 0 comments

Comments

@diogoalex01
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant