jQuery.prop missing cellpadding?
|Reported by:||janzich||Owned by:|
I'm not entirely familiar with the purpose of jQuery.prop, but I'm guessing its purpose is to fix some attributes to their standard form. It seems that it's missing cellPadding (cellSpacing is already there) which causes a problem in IE7 (tested in IE8 compatibility mode).
The following snippet in IE7 sets cellspacing, but does not set cellpadding:
$("<table/>").attr("cellspacing", "10").attr("cellpadding", "10");
The following works:
$("<table/>").attr("cellspacing", "10").attr("cellPadding", "10");
The problem is caused by the case-sensitivity of the setAttribute function in pre-IE8 (documented in MSDN).
Change History (6)
comment:2 Changed 6 years ago by SlexAxton
- Keywords prop added
- Milestone changed from 1.4 to 1.5
- Status changed from new to open
- Type changed from bug to enhancement