Ticket #3408: 3408.patch

File 3408.patch, 761 bytes (added by Artur Formella, 15 years ago)
  • _source/core/htmlparser/element.js

     
    138138                        // Open element tag.
    139139                        writer.openTag( writeName, attributes );
    140140
    141                         if ( writer.sortAttributes )
     141                        if ( writer.sortAttributes || filter )
    142142                        {
    143143                                // Copy all attributes to an array.
    144144                                var attribsArray = [];
     
    153153                                }
    154154
    155155                                // Sort the attributes by name.
    156                                 attribsArray.sort( sortAttribs );
     156                                if ( writer.sortAttributes )
     157                                        attribsArray.sort( sortAttribs );
    157158
    158159                                // Send the attributes.
    159160                                for ( var i = 0, len = attribsArray.length ; i < len ; i++ )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy