File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,19 @@ function sortedHtml(element, showNgClass) {
162
162
attr . name != 'style' &&
163
163
attr . name . substr ( 0 , 6 ) != 'jQuery' ) {
164
164
// in IE we need to check for all of these.
165
- if ( ! / n g - \d + / . exec ( attr . name ) &&
166
- attr . name != 'getElementById' &&
165
+ if ( / n g - \d + / . exec ( attr . name ) ||
166
+ attr . name == 'getElementById' ||
167
167
// IE7 has `selected` in attributes
168
- attr . name != 'selected' &&
168
+ attr . name == 'selected' ||
169
169
// IE7 adds `value` attribute to all LI tags
170
- ( node . nodeName != 'LI' || attr . name != 'value' ) )
171
- attrs . push ( ' ' + attr . name + '="' + attr . value + '"' ) ;
170
+ ( node . nodeName == 'LI' && attr . name == 'value' ) ||
171
+ // IE8 adds bogus rowspan=1 and colspan=1 to TD elements
172
+ ( node . nodeName == 'TD' && attr . name == 'rowSpan' && attr . value == '1' ) ||
173
+ ( node . nodeName == 'TD' && attr . name == 'colSpan' && attr . value == '1' ) ) {
174
+ continue ;
175
+ }
176
+
177
+ attrs . push ( ' ' + attr . name + '="' + attr . value + '"' ) ;
172
178
}
173
179
}
174
180
attrs . sort ( ) ;
You can’t perform that action at this time.
0 commit comments