HTMLHint
HTMLHint copied to clipboard
Rule request: Disallow protocolless URLS
URLs without specifying the protocol are regarded as an anti-pattern and advised against in the Google HTML Style Guide: https://google.github.io/styleguide/htmlcssguide.html#Protocol
I'd like to request an option in HTMLHint to disallow protocolless URLs, so that I get a warning if I add for example any of these:
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="//use.fontawesome.com/releases/v5.8.2/css/all.css">
Webhint has this rule: https://webhint.io/docs/user-guide/hints/hint-no-protocol-relative-urls/
I think this is is still a valid feature request and should remain open.
I think this is is still a valid feature request and should remain open.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I think this is is still a valid feature request and should remain open.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I think this is is still a valid feature request and should remain open.