r1397 - trunk/js

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Fri Sep 30 20:17:14 2005
New Revision: 1397

Modified:
   trunk/js/bxeXMLNode.js
Log:
fix for
http://bugs.bitflux.ch/cgi-bin/bugzilla/show_bug.cgi?id=885
xhtml:a -> append xhtml:a



Modified: trunk/js/bxeXMLNode.js
==============================================================================
--- trunk/js/bxeXMLNode.js	(original)
+++ trunk/js/bxeXMLNode.js	Fri Sep 30 20:17:14 2005
@@ -304,6 +304,9 @@
 
 XMLNode.prototype.setAttribute = function(name, value) {
 	this._node.setAttribute(name,value);
+	if (this._sernode) {
+		this._sernode.setAttribute(name,value);
+	}
 }
 
 
@@ -409,6 +412,9 @@
 
 XMLNode.prototype.setAttributeNS = function (namespaceURI, localName, value) {
 	this._node.setAttributeNS(namespaceURI,localName, value);
+	if (this._sernode) {
+		this._sernode.setAttributeNS(namespaceURI,localName, value);
+	}
 }
 
 XMLNode.prototype.insertIntoHTMLDocument = function(htmlnode,onlyChildren) {
@@ -688,7 +694,11 @@
 
 XMLNodeElement.prototype.setAttribute = function(name,value) {
 	try {
+	if (this._sernode) {
+		this._sernode.setAttribute(name,value);
+	}
 	return this._node.setAttribute(name, value);
+	
 	} catch(e) {
 		alert(e + "\n" + name + " = " + value + " could not be inserted");
 	}
@@ -696,10 +706,15 @@
 
 XMLNodeElement.prototype.setAttributeNode = function(node) {
 	return this._node.setAttributeNS(node.namespaceURI,node.localName, node.value);
+	
 }
 
 
 XMLNodeElement.prototype.setAttributeNS = function(namespace,name,value) {
+	
+	if (this._sernode) {
+		this._sernode.setAttribute(namespace,name,value);
+	}
 	if(name != "xmlns" && namespace != "http://www.w3.org/2000/xmlns/") { 
 		return this._node.setAttributeNS(namespace,name, value);
 	}
-- 
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.