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 @@ -133,13 +133,19 @@ function sortedHtml(element, showNgClass) {
133
133
attr . name != 'style' &&
134
134
attr . name . substr ( 0 , 6 ) != 'jQuery' ) {
135
135
// in IE we need to check for all of these.
136
- if ( ! / n g - \d + / . exec ( attr . name ) &&
137
- attr . name != 'getElementById' &&
136
+ if ( / n g - \d + / . exec ( attr . name ) ||
137
+ attr . name == 'getElementById' ||
138
138
// IE7 has `selected` in attributes
139
- attr . name != 'selected' &&
139
+ attr . name == 'selected' ||
140
140
// IE7 adds `value` attribute to all LI tags
141
- ( node . nodeName != 'LI' || attr . name != 'value' ) )
142
- attrs . push ( ' ' + attr . name + '="' + attr . value + '"' ) ;
141
+ ( node . nodeName == 'LI' && attr . name == 'value' ) ||
142
+ // IE8 adds bogus rowspan=1 and colspan=1 to TD elements
143
+ ( node . nodeName == 'TD' && attr . name == 'rowSpan' && attr . value == '1' ) ||
144
+ ( node . nodeName == 'TD' && attr . name == 'colSpan' && attr . value == '1' ) ) {
145
+ continue ;
146
+ }
147
+
148
+ attrs . push ( ' ' + attr . name + '="' + attr . value + '"' ) ;
143
149
}
144
150
}
145
151
attrs . sort ( ) ;
You can’t perform that action at this time.
0 commit comments