- From: <doug@perreault.us>
- Date: Sat, 17 Apr 2021 13:12:37 -0400
- To: "'Kevin Hawkins'" <kevin.s.hawkins@ultraslavonic.info>, "'Philip Taylor'" <P.Taylor@Rhul.Ac.Uk>
- Cc: <www-validator-css@w3.org>
- Message-ID: <000801d733ac$de8b1f90$9ba15eb0$@perreault.us>
Protocol-relative URLs are no longer considered a good idea. So, this is actually NOT a more reliable method. The most reliable method would be to simply serve all of the assets using HTTPS. See this page as a reference as to why: https://webhint.io/docs/user-guide/hints/hint-no-protocol-relative-urls/?source=devtools --Doug ------------------------------------------------------------------ Douglas Perreault, CPA* CITP CGMA *CPA designation regulated by the State of Florida From: www-validator-css-request+bounce-doug=perreault.us@listhub.w3.org <www-validator-css-request+bounce-doug=perreault.us@listhub.w3.org> On Behalf Of Kevin Hawkins Sent: Wednesday, April 14, 2021 8:46 AM To: Philip Taylor <P.Taylor@Rhul.Ac.Uk> Cc: www-validator-css@w3.org Subject: Re: [EXT] bug report: changing http to https in attribute values of HTML snippet On 4/14/21 2:26 AM, Philip Taylor wrote: Kevin Hawkins wrote: If you validate the CSS in an HTML file served over HTTPS, the HTML snippet for valid icons that you are offered to for embedding in your HTML includes attribute values with "http://" rather than "https://" . Embedding this in your page causes Firefox and likely other browsers to complain that your page includes mixed HTTP and HTTPS content, and it the W3C Validator will not validate the page if you click on the link. I believe you can fix this by simply changing all URLs in attributes to begin with "https://" The probability of anyone associated with the current W3C validation service making changes in this area tends to 0, but were they motivated so to do, a more reliable method would be to change explicit "http://" prefixes to "//", in which case they will automatically inherit the protocol used to serve the page in which they are embedded. -- Philip Taylor That's fine. I was just submitting this bug per the instructions at https://jigsaw.w3.org/css-validator/Email.html .
Received on Saturday, 17 April 2021 17:13:01 UTC