RESOLVED INVALID 191061
Parsing noscript tag with an img child element inside a figure tag fires wrongly a fetch
https://bugs.webkit.org/show_bug.cgi?id=191061
Summary Parsing noscript tag with an img child element inside a figure tag fires wron...
Dimitrios Grammatikogiannis
Reported 2018-10-30 04:30:54 PDT
Created attachment 353359 [details] bug preview For the following snippet the image should be ignored if javascript is enabled but an extra fetch event is fired ```html <figure> <noscript> <img src="https://webkit.org/wp-content/uploads/safari.png" alt=""/> </noscript> </figure> ``` You can check it live also here: https://codepen.io/dgrammatiko/pen/xyNXjv There shouldn't be an extra fetch in this case, respect the noscript tag
Attachments
bug preview (743.76 KB, image/png)
2018-10-30 04:30 PDT, Dimitrios Grammatikogiannis
no flags
Simon Fraser (smfr)
Comment 1 2018-10-31 13:45:08 PDT
Is this the preload scanner?
Rob Buis
Comment 2 2018-11-02 02:12:54 PDT
(In reply to Dimitrios Grammatikogiannis from comment #0) > Created attachment 353359 [details] > bug preview > > For the following snippet the image should be ignored if javascript is > enabled but an extra fetch event is fired > > ```html > <figure> > <noscript> > <img src="https://webkit.org/wp-content/uploads/safari.png" alt=""/> > </noscript> > </figure> > ``` > > You can check it live also here: https://codepen.io/dgrammatiko/pen/xyNXjv > > There shouldn't be an extra fetch in this case, respect the noscript tag Hi Dimitrios, I can't repro this, the preload scanner does not preload this image, and the image element in the no script tag is not created as DOM node. Can you give some more detailed steps how you are seeing the extra fetch?
Dimitrios Grammatikogiannis
Comment 3 2018-11-03 08:58:35 PDT
> Can you give some more detailed steps how you are seeing the extra fetch? I'm afraid this was a false report, the problem was not in Safari (I've been tricked by codepen auto reload) but in the intersection observer polyfill.
Note You need to log in before you can comment on or make changes to this bug.