Changeset 479


Ignore:
Timestamp:
07/19/2007 10:13:30 PM (7 years ago)
Author:
alfonsoml
Message:

Workaround for #963: Safari adds xmlns="http://www.w3.org/1999/xhtml" to the root node

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckxhtml.js

    r256 r479  
    6262 
    6363        // Strip the "XHTML" root node. 
    64         sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).Trim() ; 
     64        // Workaround: Safari adds xmlns="http://www.w3.org/1999/xhtml" to the root node #963 
     65        if ( FCKBrowserInfo.IsSafari ) 
     66                sXHTML = sXHTML.substr( 44, sXHTML.length - 52 ).Trim() ; 
     67        else 
     68                sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).Trim() ; 
    6569 
    6670        // Remove the trailing <br> added by Gecko. 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy