NEW 281998
Image incorrectly loads even when set to lazy loading.
https://bugs.webkit.org/show_bug.cgi?id=281998
Summary Image incorrectly loads even when set to lazy loading.
Emilio Cobos Álvarez (:emilio)
Reported 2024-10-23 11:57:00 PDT
Created attachment 473021 [details] Testcase See test-case. When src is set on a disconnected image, the image seems to get loaded synchronously even though when loading=lazy is set Note chrome has a similar bug: https://issues.chromium.org/issues/375209498
Attachments
Testcase (462 bytes, text/plain)
2024-10-23 11:57 PDT, Emilio Cobos Álvarez (:emilio)
no flags
testcase as html file (447 bytes, text/html)
2024-11-07 22:46 PST, Karl Dubost
no flags
Emilio Cobos Álvarez (:emilio)
Comment 1 2024-10-23 11:57:26 PDT
To be clear, this is dependent on attribute ordering, and is not allowed by the spec.
Radar WebKit Bug Importer
Comment 2 2024-10-30 12:00:52 PDT
Karl Dubost
Comment 3 2024-11-07 22:46:37 PST
Created attachment 473183 [details] testcase as html file Thanks Emilio, I can confirm this is happening on the latest versions of Safari. There is a load event on Safari event: load, target: [object HTMLImageElement] On the other hand I do not see the bug happening on Chrome. Google Chrome Canary 132.0.6825.0 6825.0
Karl Dubost
Comment 4 2024-11-07 23:18:24 PST
There must be a question of timing in the execution of that code, because if I do a step by step in the Web Inspector Sources tab. The image is not being loaded.
Note You need to log in before you can comment on or make changes to this bug.