-
-
Notifications
You must be signed in to change notification settings - Fork 428
Open
Labels
PR neededfeature requestFunctionality that introduces a new featureFunctionality that introduces a new featurehelp wantedWe are looking for community helpWe are looking for community helpkeep-unstaleThe issue will not be marked as stale by the stale-botThe issue will not be marked as stale by the stale-bot
Description
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/
hacknug, glen-84 and Schweinepriester
Metadata
Metadata
Assignees
Labels
PR neededfeature requestFunctionality that introduces a new featureFunctionality that introduces a new featurehelp wantedWe are looking for community helpWe are looking for community helpkeep-unstaleThe issue will not be marked as stale by the stale-botThe issue will not be marked as stale by the stale-bot