Bug Tracker


Ticket #5035 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

Adding a colspan attribute does not take effect in IE

Reported by: ashrewdmint Owned by:
Priority: minor Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:


$('td').attr('colspan', 5)

This does not appear to work in IE. If you look at the html, the attribute will be there, but it does not change the table. Interestingly enough, this will work

$('table').append('<td colspan="5">Foo</td>')

If you inspect the html afterwards, you will find that IE actually changes the name of the colspan attribute to be colSpan (uppercase S). Weird!

Change History

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

If you use "colSpan" IE should be appeased. jQuery 1.4 does this for you now.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.