issue with "imagesrcset"

I am writing because I got an error from what I believe is valid code using your validator. I could not raise an issue on your website because it said I need an account to do that.

Here is the code in question, which was in my header:
<link rel="preload" as="image" href="/photo/sea10.jpg” imagesrcset="/photo/sea10.jpg 1x, /photo/sea20.jpg 2x”>


Error: Attribute imagesrcset not allowed on element link <https://html.spec.whatwg.org/multipage/#the-link-element> at this point.


I believe “imagesrcset” works in Edge, Firefox, and Chrome according to:
https://caniuse.com/?search=imagesrcset

Also confirmed on this page:
https://www.htmlvalidator.com/CSS-HTML-Forum/viewtopic.php?t=2968

Thanks,
Steve

Received on Saturday, 20 February 2021 03:04:55 UTC