Jim Moe wrote:
Hello,
Mozilla (suite and Firefox) ignore the height and width attributes of
<img> when the image itself is unavailable (404); only enough space is
allocated for the alt text.
Is this expected behavior for Standards mode?
Jim,
Ambiguous.
The spec says (section 13.2), "The alt attribute specifies alternate
text that is rendered when the image cannot be displayed (see below for
information on how to specify alternate text ). User agents must render
alternate text when they cannot support images, they cannot support a
certain image type or when they are configured not to display images."
:
"Please consult the section on the visual presentation of objects,
images, and applets for information about image size, alignment, and
borders."
And that section (13.7) says, "When specified, the width and height
attributes tell user agents to override the natural image or object size
in favor of these values."
So it's a question of whether rendering alternate text supersedes or
replaces the overriding of natural image size (which is unknown in the
case you describe) by the height and width parameters.
If all of the ambiguities in the HTML specs were laid end to end....
Chris Beall, who prefers the Mozilla interpretation.