Ignore:
Timestamp:
04/14/09 09:07:43 (10 years ago)
Author:
ray
Message:
  • #1424 [IE8][DOMwalk] style attribute put in twice, once empty
  • #1423 [IE] inline style converted to lower case, which can break background images


File:
1 edited

Legend:

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

    r1167 r1185  
    232232            value = root.style.cssText.replace(/rgb\(.*?\)/ig,function(rgb){ return Xinha._colorToRgb(rgb) }); 
    233233          } 
     234          else if (!value) // IE8 has style in attributes (see below), but it's empty!  
     235          { 
     236            continue; 
     237          } 
    234238          if ( /^(_moz)?$/.test(value) ) 
    235239          { 
     
    243247        if ( Xinha.is_ie && root.style.cssText ) 
    244248        { 
    245           html += ' style="' + root.style.cssText.toLowerCase() + '"'; 
     249          html += ' style="' + root.style.cssText.replace(/(^)?([^:]*):(.*?)(;|$)/g, function(m0, m1,m2,m3, m4){return m2.toLowerCase() + ':' + m3 + m4;}) + '"'; 
    246250        } 
    247251        if ( Xinha.is_ie && root.tagName.toLowerCase() == "option" && root.selected ) 
Note: See TracChangeset for help on using the changeset viewer.