Changeset 917
- Timestamp:
- 09/29/07 19:39:18 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fckxhtml_gecko.js
r706 r917 69 69 } 70 70 } 71 72 if ( FCKBrowserInfo.IsOpera ) 73 { 74 // Opera moves the <FCK:meta> element outside head (#1166). 75 76 // Save a reference to the XML <head> node, so we can use it for 77 // orphan <meta>s. 78 FCKXHtml.TagProcessors['head'] = function( node, htmlNode ) 79 { 80 FCKXHtml.XML._HeadElement = node ; 81 82 node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ; 83 84 return node ; 85 } 86 87 // Check whether a <meta> element is outside <head>, and move it to the 88 // proper place. 89 FCKXHtml.TagProcessors['meta'] = function( node, htmlNode, xmlNode ) 90 { 91 if ( htmlNode.parentNode.nodeName.toLowerCase() != 'head' ) 92 { 93 var headElement = FCKXHtml.XML._HeadElement ; 94 95 if ( headElement && xmlNode != headElement ) 96 { 97 delete htmlNode._fckxhtmljob ; 98 FCKXHtml._AppendNode( headElement, htmlNode ) ; 99 return null ; 100 } 101 } 102 103 return node ; 104 } 105 }
Note: See TracChangeset
for help on using the changeset viewer.
