Side navigation
#7026 closed bug (invalid)
Opened September 11, 2010 03:53PM UTC
Closed September 22, 2010 10:37PM UTC
Image Attribute Extraction Fails in IE, Works in Firefox
Reported by: | rwadams | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | attributes | Version: | 1.4.2 |
Keywords: | img attribute Firefox MSIE | Cc: | |
Blocked by: | Blocking: |
Description
URL: http://www.hymntime.com/tch/htm/h/o/template.htm
In Firefox 3.6.9, the above page renders correctly. However, in IE 8.0.7600.16385 (64-bit edition), the width of tables enclosing images is not set to the image width, causing the caption to extend beyond the image's edge (the image in the upper left page corner demonstrates this misbehavior).
The failing code code is at line 39 of hymn2.js, which reads:
var width = $(selector + " img").attr("width");
In Firefox, this correctly extracts the width attribute, but in IE, this code always yields a zero width.
Is this a bug? Is there a workaround to get the width correctly?
Attachments (0)
Change History (1)
Changed September 22, 2010 10:37PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Please use the jQuery Forum for support requests.