Closed Bug 265954 Opened 21 years ago Closed 21 years ago

Bad img tags don't hold their size for ...loose.dtd

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: bugzilla, Assigned: jdunn)

References

()

Details

Attachments

(2 files)

Dreamweaver now uses what they call an "Image Placeholder" which is a stand-in image to be used until a real image is available. Very handy for sizing and such. Source looks like the following: <img src="" width="64" height="64" style="background-color: #990000"> No source, fixed size, background colour... In Firefox 0.9 (I have confirmation from other people on new ones, although possibly not bleadingly new) the image shows briefly, and then the image appears to "collapse" down to a very small size or dissapears completely. I think we should support this, it's not unreasonably to retain the image if the file (null in this case of course) isn't found.
Restating the problem. Apparent under normal conditions it DOES work. However, it can be made to NOT work with a slight change to the DOCTYPE. I've created to file to demonstrate. The first, which works and displays the image, uses the DOCTYPE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> The second, which does NOT work, uses. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> I will attach both files to the bug.
Summary: Dreamweaver "Image Placeholder" img tags don't hold their size → Bad img tags don't hold their size for ...loose.dtd
loading the image failed (since it loads an html page). when that happens, the alt text is shown in strict mode (triggered by loose.dtd). you have no alt text, so nothing appears. this is working as designed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Verified. This "works" in quirks mode, precisely because of the code generated by tools like dreamweaver. In standards mode, we replace the image with the alt text. See http://www.mozilla.org/docs/web-developer/quirks/ for more information.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: