HighDots Forums  

Re: img height="" width="" - undefined?

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Re: img height="" width="" - undefined? in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Dunlop
 
Posts: n/a

Default Re: img height="" width="" - undefined? - 11-26-2007 , 08:14 AM






Phil Endecott:

Quote:
It looks as if the HTML4 spec does not define a meaning for empty height
and width attributes in an IMG element. Moz seems to ignore them, while
IE7 sets the dimension to 1 pixel (or something like that).
An empty height or width attribute is an error because height and
width, if specified, must have a length (either a pixel value or a
percentage). The HTML4.01 specification doesn't say how user-agents
should handle errors, but I think ignoring the empty value is
reasonable error recovery.

With error recovery like that, small wonder MS Explorer crashed.

--
Jock


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.