update address standardization for cust_location changes
[freeside.git] / rt / share / html / NoAuth / RichText / FCKeditor / editor / _source / internals / fckxhtml_ie.js
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/_source/internals/fckxhtml_ie.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/_source/internals/fckxhtml_ie.js
deleted file mode 100644 (file)
index 94f2ef9..0000000
+++ /dev/null
@@ -1,213 +0,0 @@
-/*\r
- * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
- * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r
- *\r
- * == BEGIN LICENSE ==\r
- *\r
- * Licensed under the terms of any of the following licenses at your\r
- * choice:\r
- *\r
- *  - GNU General Public License Version 2 or later (the "GPL")\r
- *    http://www.gnu.org/licenses/gpl.html\r
- *\r
- *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
- *    http://www.gnu.org/licenses/lgpl.html\r
- *\r
- *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
- *    http://www.mozilla.org/MPL/MPL-1.1.html\r
- *\r
- * == END LICENSE ==\r
- *\r
- * Defines the FCKXHtml object, responsible for the XHTML operations.\r
- * IE specific.\r
- */\r
-\r
-FCKXHtml._GetMainXmlString = function()\r
-{\r
-       return this.MainNode.xml ;\r
-}\r
-\r
-FCKXHtml._AppendAttributes = function( xmlNode, htmlNode, node, nodeName )\r
-{\r
-       var aAttributes = htmlNode.attributes,\r
-               bHasStyle ;\r
-\r
-       for ( var n = 0 ; n < aAttributes.length ; n++ )\r
-       {\r
-               var oAttribute = aAttributes[n] ;\r
-\r
-               if ( oAttribute.specified )\r
-               {\r
-                       var sAttName = oAttribute.nodeName.toLowerCase() ;\r
-                       var sAttValue ;\r
-\r
-                       // Ignore any attribute starting with "_fck".\r
-                       if ( sAttName.StartsWith( '_fck' ) )\r
-                               continue ;\r
-                       // The following must be done because of a bug on IE regarding the style\r
-                       // attribute. It returns "null" for the nodeValue.\r
-                       else if ( sAttName == 'style' )\r
-                       {\r
-                               // Just mark it to do it later in this function.\r
-                               bHasStyle = true ;\r
-                               continue ;\r
-                       }\r
-                       // There are two cases when the oAttribute.nodeValue must be used:\r
-                       //              - for the "class" attribute\r
-                       //              - for events attributes (on IE only).\r
-                       else if ( sAttName == 'class' )\r
-                       {\r
-                               sAttValue = oAttribute.nodeValue.replace( FCKRegexLib.FCK_Class, '' ) ;\r
-                               if ( sAttValue.length == 0 )\r
-                                       continue ;\r
-                       }\r
-                       else if ( sAttName.indexOf('on') == 0 )\r
-                               sAttValue = oAttribute.nodeValue ;\r
-                       else if ( nodeName == 'body' && sAttName == 'contenteditable' )\r
-                               continue ;\r
-                       // XHTML doens't support attribute minimization like "CHECKED". It must be transformed to checked="checked".\r
-                       else if ( oAttribute.nodeValue === true )\r
-                               sAttValue = sAttName ;\r
-                       else\r
-                       {\r
-                               // We must use getAttribute to get it exactly as it is defined.\r
-                               // There are some rare cases that IE throws an error here, so we must try/catch.\r
-                               try\r
-                               {\r
-                                       sAttValue = htmlNode.getAttribute( sAttName, 2 ) ;\r
-                               }\r
-                               catch (e) {}\r
-                       }\r
-                       this._AppendAttribute( node, sAttName, sAttValue || oAttribute.nodeValue ) ;\r
-               }\r
-       }\r
-\r
-       // IE loses the style attribute in JavaScript-created elements tags. (#2390)\r
-       if ( bHasStyle || htmlNode.style.cssText.length > 0 )\r
-       {\r
-               var data = FCKTools.ProtectFormStyles( htmlNode ) ;\r
-               var sStyleValue = htmlNode.style.cssText.replace( FCKRegexLib.StyleProperties, FCKTools.ToLowerCase ) ;\r
-               FCKTools.RestoreFormStyles( htmlNode, data ) ;\r
-               this._AppendAttribute( node, 'style', sStyleValue ) ;\r
-       }\r
-}\r
-\r
-// On very rare cases, IE is loosing the "align" attribute for DIV. (right align and apply bulleted list)\r
-FCKXHtml.TagProcessors['div'] = function( node, htmlNode )\r
-{\r
-       if ( htmlNode.align.length > 0 )\r
-               FCKXHtml._AppendAttribute( node, 'align', htmlNode.align ) ;\r
-\r
-       node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ;\r
-\r
-       return node ;\r
-}\r
-\r
-// IE automatically changes <FONT> tags to <FONT size=+0>.\r
-FCKXHtml.TagProcessors['font'] = function( node, htmlNode )\r
-{\r
-       if ( node.attributes.length == 0 )\r
-               node = FCKXHtml.XML.createDocumentFragment() ;\r
-\r
-       node = FCKXHtml._AppendChildNodes( node, htmlNode ) ;\r
-\r
-       return node ;\r
-}\r
-\r
-FCKXHtml.TagProcessors['form'] = function( node, htmlNode )\r
-{\r
-       if ( htmlNode.acceptCharset && htmlNode.acceptCharset.length > 0 && htmlNode.acceptCharset != 'UNKNOWN' )\r
-               FCKXHtml._AppendAttribute( node, 'accept-charset', htmlNode.acceptCharset ) ;\r
-\r
-       // IE has a bug and htmlNode.attributes['name'].specified=false if there is\r
-       // no element with id="name" inside the form (#360 and SF-BUG-1155726).\r
-       var nameAtt = htmlNode.attributes['name'] ;\r
-\r
-       if ( nameAtt && nameAtt.value.length > 0 )\r
-               FCKXHtml._AppendAttribute( node, 'name', nameAtt.value ) ;\r
-\r
-       node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ;\r
-\r
-       return node ;\r
-}\r
-\r
-// IE doens't see the value attribute as an attribute for the <INPUT> tag.\r
-FCKXHtml.TagProcessors['input'] = function( node, htmlNode )\r
-{\r
-       if ( htmlNode.name )\r
-               FCKXHtml._AppendAttribute( node, 'name', htmlNode.name ) ;\r
-\r
-       if ( htmlNode.value && !node.attributes.getNamedItem( 'value' ) )\r
-               FCKXHtml._AppendAttribute( node, 'value', htmlNode.value ) ;\r
-\r
-       if ( !node.attributes.getNamedItem( 'type' ) )\r
-               FCKXHtml._AppendAttribute( node, 'type', 'text' ) ;\r
-\r
-       return node ;\r
-}\r
-\r
-FCKXHtml.TagProcessors['label'] = function( node, htmlNode )\r
-{\r
-       if ( htmlNode.htmlFor.length > 0 )\r
-               FCKXHtml._AppendAttribute( node, 'for', htmlNode.htmlFor ) ;\r
-\r
-       node = FCKXHtml._AppendChildNodes( node, htmlNode ) ;\r
-\r
-       return node ;\r
-}\r
-\r
-// Fix behavior for IE, it doesn't read back the .name on newly created maps\r
-FCKXHtml.TagProcessors['map'] = function( node, htmlNode )\r
-{\r
-       if ( ! node.attributes.getNamedItem( 'name' ) )\r
-       {\r
-               var name = htmlNode.name ;\r
-               if ( name )\r
-                       FCKXHtml._AppendAttribute( node, 'name', name ) ;\r
-       }\r
-\r
-       node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ;\r
-\r
-       return node ;\r
-}\r
-\r
-FCKXHtml.TagProcessors['meta'] = function( node, htmlNode )\r
-{\r
-       var oHttpEquiv = node.attributes.getNamedItem( 'http-equiv' ) ;\r
-\r
-       if ( oHttpEquiv == null || oHttpEquiv.value.length == 0 )\r
-       {\r
-               // Get the http-equiv value from the outerHTML.\r
-               var sHttpEquiv = htmlNode.outerHTML.match( FCKRegexLib.MetaHttpEquiv ) ;\r
-\r
-               if ( sHttpEquiv )\r
-               {\r
-                       sHttpEquiv = sHttpEquiv[1] ;\r
-                       FCKXHtml._AppendAttribute( node, 'http-equiv', sHttpEquiv ) ;\r
-               }\r
-       }\r
-\r
-       return node ;\r
-}\r
-\r
-// IE ignores the "SELECTED" attribute so we must add it manually.\r
-FCKXHtml.TagProcessors['option'] = function( node, htmlNode )\r
-{\r
-       if ( htmlNode.selected && !node.attributes.getNamedItem( 'selected' ) )\r
-               FCKXHtml._AppendAttribute( node, 'selected', 'selected' ) ;\r
-\r
-       node = FCKXHtml._AppendChildNodes( node, htmlNode ) ;\r
-\r
-       return node ;\r
-}\r
-\r
-// IE doens't hold the name attribute as an attribute for the <TEXTAREA> and <SELECT> tags.\r
-FCKXHtml.TagProcessors['textarea'] = FCKXHtml.TagProcessors['select'] = function( node, htmlNode )\r
-{\r
-       if ( htmlNode.name )\r
-               FCKXHtml._AppendAttribute( node, 'name', htmlNode.name ) ;\r
-\r
-       node = FCKXHtml._AppendChildNodes( node, htmlNode ) ;\r
-\r
-       return node ;\r
-}\r