Ticket #3408: 3408.patch
File 3408.patch, 761 bytes (added by , 15 years ago) |
---|
-
_source/core/htmlparser/element.js
138 138 // Open element tag. 139 139 writer.openTag( writeName, attributes ); 140 140 141 if ( writer.sortAttributes )141 if ( writer.sortAttributes || filter ) 142 142 { 143 143 // Copy all attributes to an array. 144 144 var attribsArray = []; … … 153 153 } 154 154 155 155 // Sort the attributes by name. 156 attribsArray.sort( sortAttribs ); 156 if ( writer.sortAttributes ) 157 attribsArray.sort( sortAttribs ); 157 158 158 159 // Send the attributes. 159 160 for ( var i = 0, len = attribsArray.length ; i < len ; i++ )