RESOLVED INVALID 21309
Image inside a javascript protocol link doesn't show
https://bugs.webkit.org/show_bug.cgi?id=21309
Summary Image inside a javascript protocol link doesn't show
Doeke Zanstra
Reported 2008-10-02 09:08:47 PDT
An image inside a link with an javascript-protocol url only returning void is not displayed. The markup: <a href="javascript:void 0;"><img src="http://webkit.org/images/download.png"></a> If the javascript protocol actually performs something, the image is displayed: <a href="javascript:alert('hoi');void 0;"><img src="http://webkit.org/images/download.png"></a> Real world usage: search results on www.qoop.nl (a Dutch collectors market place). The URL points to a testcase (same as markup above). The first image doesn't show, but is expected to be shown.
Attachments
Alexey Proskuryakov
Comment 1 2008-10-02 10:44:34 PDT
I cannot reproduce this with shipping Safari/WebKit, or with a local debug build. It would also be extremely surprising for href attribute of an enclosing element to have any effect on image display.
Doeke Zanstra
Comment 2 2008-10-02 12:01:27 PDT
Turns out this has to do with css-ad blocking from http://www.floppymoose.com. The following CSS rule caused the problem. A:link[HREF*="javascript:void"] IMG /*, ...more selectors...*/ { display: none ! important } So it's not a Safari problem.
Note You need to log in before you can comment on or make changes to this bug.