Bug 145224 - The text within alt attribute of any image is not displayed on webpages, when images are prevented from loading.
Summary: The text within alt attribute of any image is not displayed on webpages, when...
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 4.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 154303 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-09 13:05 UTC by Roshan
Modified: 2021-03-21 00:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch for kde 4.0.2 (apply to kdelibs) (44.64 KB, patch)
2008-03-21 14:18 UTC, Alan Jenkins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roshan 2007-05-09 13:05:28 UTC
Version:           3.5.2 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu18 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-23-386

As per strict standards of W3C, web developers often add the ALT attribute to each image so that, text describing the image is displayed, when images are not loaded or prevented from loading. Since, Konqueror allows one (or a user) to uncheck "Automatically load images", thereby not allowing images to load in the page, the alt text attribute within the image tag should be read and displayed.
Comment 1 Alan Jenkins 2007-09-01 10:26:34 UTC
For comparison: Firefox 2.0 Does The Right Thing.
Comment 2 Tommi Tervo 2007-12-19 08:57:22 UTC
*** Bug 154303 has been marked as a duplicate of this bug. ***
Comment 3 David Anderson 2007-12-19 09:28:08 UTC
There is a minimal test case with screenshots (including Opera's correct behaviour for comparison) in http://bugs.kde.org/show_bug.cgi?id=154303
Comment 4 David Anderson 2007-12-19 09:29:24 UTC
Bug still exists in 3.5.8, BTW.
Comment 5 Tommi Tervo 2007-12-19 09:46:01 UTC
3.97 has same bug too.
Comment 6 Alan Jenkins 2008-03-21 14:18:59 UTC
Created attachment 23990 [details]
Patch for kde 4.0.2 (apply to kdelibs)

Here's a possible fix.

It does more or less what it's supposed to.  It's not ideal - Firefox has a
better solution, where it almost looks like the ALT text is made into a text
node and completely replaces the image.  In particular, the ALT text for inline
images will not have the same baseline as the surrounding text.  It's much
better than doing nothing though.

P.S. I think this bug should be marked "confirmed".
Comment 7 FiNeX 2008-04-21 00:32:12 UTC
The patch has not been used right now. Has it been tested?
Comment 8 Alan Jenkins 2008-04-21 09:40:40 UTC
I did build and run it and it did what I expected.

However I'm not running with it anymore.  I had problems where images weren't loading when they should have been.  So I think I missed something :-(.
Comment 9 Justin Zobel 2021-03-21 00:25:52 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 10 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.