When href is missing from a preload link it ignores imagesrcset
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: derekmj74, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0
Steps to reproduce:
I've shortened the image names but apart from that I used this HTML:
<link rel="preload" imagesrcset="small.jpg 100w, medium.jpg 500w, large.jpg 1000w" imagesizes="100vw" as="image">
Actual results:
The image did not preload.
Expected results:
I think this line "One or both of the href or imagesrcset attributes must be present." from https://html.spec.whatwg.org/multipage/semantics.html#the-link-element means the href can be absent and the preloading will still work. I tested in Chrome and Edge and it works there.
In Firefox I have to use an empty href i.e. href="", which the spec disallows if I'm reading it right.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•