r1464 - branches/bxe_2_0/mozile

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Wed Apr  5 14:05:24 2006
New Revision: 1464

Modified:
   branches/bxe_2_0/mozile/eDOMXHTML.js
Log:
use internal bxe_createMethod

Modified: branches/bxe_2_0/mozile/eDOMXHTML.js
==============================================================================
--- branches/bxe_2_0/mozile/eDOMXHTML.js	(original)
+++ branches/bxe_2_0/mozile/eDOMXHTML.js	Wed Apr  5 14:05:24 2006
@@ -382,7 +382,7 @@
 function documentCreateXHTMLElement(elementName)
 {
 
-		return bxe_config.xmldoc.createElement(elementName);
+		return bxe_config.xmldoc.createElementNS(null,elementName);
 	
 	
 }
@@ -821,12 +821,12 @@
 		return null; // go to exception
 
 	if (typeof node != "undefined" && node.nodeType == 1) {
-		var te = bxe_config.xmldoc.createElementNS(node.namespaceURI, node.localName);
+		var te = bxe_createXMLNode(node.namespaceURI, node.localName);
 	} else {
-		var te = documentCreateXHTMLElement("table");
+		var te = bxe_createXMLNode(null,"table");
 	}
-	te.XMLNode = te.getXMLNode();
-	te.appendChild(document.createTextNode("\n"));
 	
-	return te;
+	te._node.appendChild( bxe_config.xmldoc.createTextNode("\n"));
+	
+	return te._node;
 }
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.