Open Bug 1718781 Opened 2 years ago Updated 2 years ago

When href is missing from a preload link it ignores imagesrcset


(Core :: DOM: Core & HTML, defect, P3)

Firefox 90





(Reporter: derekmj74, Unassigned, NeedInfo)


(Blocks 1 open bug)


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 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.

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.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Blocks: rel=preload
Severity: -- → S3
Flags: needinfo?(bugs)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.