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

SRI/CORS check should ignore relative links #400

Closed
fulldecent opened this issue Mar 7, 2017 · 3 comments · Fixed by #412
Closed

SRI/CORS check should ignore relative links #400

fulldecent opened this issue Mar 7, 2017 · 3 comments · Fixed by #412
Assignees

Comments

@fulldecent
Copy link
Collaborator

fulldecent commented Mar 7, 2017

Test case

echo '<script src="local.js"></script>' > test.html
htmlproofer --check-sri --checks_to_ignore LinkCheck  .

Expected outcome

No errors.

Actual outcome

  • SRI and CORS not provided in: local.js (line 1)

Discussion

--check-sri should only be active for links containing //, or more specifically, links that contain a host component.


References: #388 #382

@fulldecent
Copy link
Collaborator Author

CSS check is not flagging local CSS files, this is good. JS is failing. Sorry, updated test case to show actual broken behavior.

@fulldecent
Copy link
Collaborator Author

@ilyalyo Can you help with this one?

@ilyalyo
Copy link
Contributor

ilyalyo commented Mar 28, 2017

@fulldecent yes, I can.

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

Successfully merging a pull request may close this issue.

3 participants