Changeset 1691
- Timestamp:
- 2008-03-14 07:15:00 (4 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/_source/internals/fcktools_gecko.js (modified) (1 diff)
-
editor/_source/internals/fckxhtml_gecko.js (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fcktools_gecko.js
r1629 r1691 121 121 // Originaly, we were had the following here: 122 122 // return document.implementation.createDocument( '', '', null ) ; 123 // 124 // But, when manipulating document.domain (#123), we had 125 // "Permission denied" errors when trying to call methods inside 126 // the returned object. To avoid it, we have to change to the 127 // following, by implementing a "custom" DOM document object, which 128 // includes the methods that are useful for us. 129 130 var domDoc = document.createDocumentFragment() ; 131 132 domDoc.createElement = function( name ) 133 { 134 return document.createElement( name ) ; 135 } 136 137 domDoc.createTextNode = function( text ) 138 { 139 return document.createTextNode( text ) ; 140 } 141 142 domDoc.createAttribute = function( attName ) 143 { 144 return document.createAttribute( attName ) ; 145 } 146 147 domDoc.createComment = function( text ) 148 { 149 return document.createComment( text ) ; 150 } 151 152 return domDoc ; 123 // But that doesn't work if we're running under domain relaxation mode, so we need a workaround. 124 // See http://ajaxian.com/archives/xml-messages-with-cross-domain-json about the trick we're using. 125 var doc = ( new DOMParser() ).parseFromString( '<tmp></tmp>', 'text/xml' ) ; 126 FCKDomTools.RemoveNode( doc.firstChild ) ; 127 return doc ; 153 128 } 154 129 return null ; -
FCKeditor/trunk/editor/_source/internals/fckxhtml_gecko.js
r1565 r1691 25 25 FCKXHtml._GetMainXmlString = function() 26 26 { 27 return '<xhtml>' + this.MainNode.innerHTML + '</xhtml>';27 return ( new XMLSerializer() ).serializeToString( this.MainNode ) ; 28 28 } 29 29 -
FCKeditor/trunk/_whatsnew.html
r1689 r1691 61 61 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1920">#1920</a>] Fixed SSL 62 62 warning message when opening image and flash dialogs under HTTPS in IE6.</li> 63 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1955">#1955</a>] 64 [<a target="_blank" href="http://dev.fckeditor.net/ticket/1981">#1981</a>] 65 [<a target="_blank" href="http://dev.fckeditor.net/ticket/1985">#1985</a>] 66 [<a target="_blank" href="http://dev.fckeditor.net/ticket/1989">#1989</a>] 67 Fixed XHTML source formatting errors in non-IE browsers.</li> 63 68 </ul> 64 69 <h3>