W3C home > Mailing lists > Public > www-validator-css@w3.org > April 2021

Re: [EXT] bug report: changing http to https in attribute values of HTML snippet

From: Philip Taylor <P.Taylor@Rhul.Ac.Uk>
Date: Wed, 14 Apr 2021 08:26:43 +0100
To: Kevin Hawkins <kevin.s.hawkins@ultraslavonic.info>
Cc: www-validator-css@w3.org
Message-ID: <2d3b58f5-4900-122d-6fc9-890c77e8503d@Rhul.Ac.Uk>
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

This email, its contents and any attachments are intended solely for the addressee and may contain confidential information. In certain circumstances, it may also be subject to legal privilege. Any unauthorised use, disclosure, or copying is not permitted. If you have received this email in error, please notify us and immediately and permanently delete it. Any views or opinions expressed in personal emails are solely those of the author and do not necessarily represent those of Royal Holloway, University of London. It is your responsibility to ensure that this email and any attachments are virus free.
Received on Wednesday, 14 April 2021 07:27:04 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 14 April 2021 07:27:06 UTC