Changeset 1347 for trunk/modules/GetHtml


Ignore:
Timestamp:
02/03/18 14:01:29 (17 months ago)
Author:
gogo
Message:

#1391 - Improve PreserveScripts?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/GetHtml/DOMwalk.js

    r1313 r1347  
    128128        var attrs = root.attributes; 
    129129         
    130         for ( i = 0; i < attrs.length; ++i ) 
     130        for ( i = attrs.length-1; i >= 0; --i ) 
    131131        { 
    132132          var a = attrs.item(i); 
     
    239239            continue; 
    240240          } 
     241 
     242/* This looks wrong, http://trac.xinha.org/ticket/1391#comment:7 
    241243          if ( /^(_moz)?$/.test(value) ) 
    242244          { 
     
    245247            continue; 
    246248          } 
     249*/ 
     250 
    247251          html += " " + name + '="' + Xinha.htmlEncode(value) + '"'; 
    248252        } 
Note: See TracChangeset for help on using the changeset viewer.