Bug Tracker

Opened 14 years ago

Closed 12 years ago

Last modified 12 years ago

#5413 closed bug (fixed)

tag "img" width/height attribute is zero (IE)

Reported by: Ammon Owned by: Timmy Willison
Priority: low Milestone: 1.6
Component: attributes Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

When img tag is hidden (style is "display:none" or contain in a div that has style is "display:none"), use the attr function to get the width/height will return zero, not the actually width/height attribute in img tag.

Attachments (1)

index.htm (643 bytes) - added by Ammon 14 years ago.

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by Ammon

Attachment: index.htm added

comment:1 Changed 13 years ago by dmethvin

Component: unfiledattributes

comment:2 Changed 13 years ago by snover

Milestone: 1.4
Priority: majorlow
Status: newopen
Version: 1.3.21.4.3

This is caused by .attr using DOM properties instead of HTML attributes. test case

comment:3 Changed 13 years ago by snover

#5728 is a duplicate of this ticket.

comment:4 Changed 13 years ago by Timmy Willison

Milestone: 1.6
Owner: set to Timmy Willison
Status: openassigned
Version: 1.4.31.5.2

Even though attrHooks uses getAttribute and fixed this in certain browsers test case with attrhooks, this was still a problem for ie6 and 7. However, an update has been added to fix the issue in the pull request. Commit 45a7f63e1ff90cc15dfde7d9a7df7dc62690c6b1

comment:6 Changed 12 years ago by Timmy Willison

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.