Ticket #3341: 3341_3.patch

File 3341_3.patch, 640 bytes (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/core/dom/element.js

     
    335335                getOuterHtml : function()
    336336                {
    337337                        if ( this.$.outerHTML )
    338                                 return this.$.outerHTML;
     338                        {
     339                                // IE includes the <?xml:namespace> tag in the outerHTML of
     340                                // namespaced element. So, we must strip it here. (#3341)
     341                                return this.$.outerHTML.replace( /<?[^>]*>/, '' );
     342                        }
    339343
    340344                        var tmpDiv = this.$.ownerDocument.createElement( 'div' );
    341345                        tmpDiv.appendChild( this.$.cloneNode( true ) );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy