Bug Tracker

Modify

Ticket #2521 (closed bug: fixed)

Opened 5 years ago

Last modified 14 months ago

Internet Explorer doesn't seem to like attributes

Reported by: nicolab2108 Owned by:
Priority: minor Milestone: 1.2.4
Component: core Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:

Description

Hi, apologies if this is already mentioned or there is a solution to it. If there is a solution I'd appreciate being directed toward it as I have looked everywhere and just...can't find it :(

<script type="text/javascript">
//<![CDATA[
$("table").removeAttr("cellspacing");
$("table").attr("cellspacing", "10");
//]]>
</script>

I'm using jQuery to alter the cellspacing of tables on a site because I am unable to edit the HTML myself. I have used a cellspacing of 10 just to make sure it's actually doing something :P

Firefox etc are absolutely fine with it, but Internet Explorer refuses to acknowledge it at all.

Change History

comment:1 Changed 5 years ago by davidserduke

The 'cellspacing' attribute might have to be added to the jQuery.props list to make this work. Till then a workaround to fix the first table in the page (for example) is

$("table").get(0).cellSpacing = 10;

 http://msdn2.microsoft.com/en-us/library/ms533551(VS.85).aspx

comment:2 Changed 5 years ago by flesler

 This should fix this.

comment:3 Changed 5 years ago by flesler

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

Fixed at [5574], check #2548.

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

View

Add a comment

Modify Ticket

Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.