HTMLHint icon indicating copy to clipboard operation
HTMLHint copied to clipboard

Rule request: Disallow protocolless URLS

Open coliff opened this issue 6 years ago • 6 comments

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/

coliff avatar Jun 03 '19 03:06 coliff

I think this is is still a valid feature request and should remain open.

coliff avatar May 29 '20 10:05 coliff

I think this is is still a valid feature request and should remain open.

coliff avatar Jul 28 '20 10:07 coliff

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.

stale[bot] avatar Sep 26 '20 12:09 stale[bot]

I think this is is still a valid feature request and should remain open.

coliff avatar Sep 26 '20 23:09 coliff

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.

stale[bot] avatar Nov 26 '20 00:11 stale[bot]

I think this is is still a valid feature request and should remain open.

coliff avatar Nov 26 '20 00:11 coliff