Open Bug 623719 Opened 14 years ago Updated 2 years ago

dynamically added image pointing to non-existent file:// does not display alternate text

Categories

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

x86_64
Linux
defect

Tracking

()

People

(Reporter: arno, Unassigned)

References

Details

Attachments

(1 file)

Attached file testcase
Hi,
I've created an image with document.createElement("img");

then I've defined src and alt attributes.
src points to a non existent file.
When adding image to the document, alternate text is not displayed. It works correctly in ie7 and opera.
when modifying innerHTML of image parent element, alternate text is then displayed.
After opening the bug, I discovered the bug does not appear.
Actually, problem only happens with local file.
Saving the file to the disk, and opening it from there should trigger the bug.
So, this is less annoying (but still annoying for web development)
If you're doing web development against file://, you're doing it wrong, since so many things work different for file:// and http://.... especially in a world with CORS.
Depends on: 282432
That said, we should consider fixing this independently of bug 282432, as we fixed bug 269125.  Ms2ger, are you interested?
Summary: dynamically added broken image does not display alternate text → dynamically added image pointing to non-existent file:// does not display alternate text
If this is only a problem for file: URLs, not really.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: