| Newsgroups |
gmane.editors.bitflux.cvs |
| Message-ID |
<[email protected]> |
Author: chregu
Date: Thu Oct 6 19:02:48 2005
New Revision: 1407
Modified:
trunk/js/bxeXMLNode.js
Log:
more checks for valid nodes
Modified: trunk/js/bxeXMLNode.js
==============================================================================
--- trunk/js/bxeXMLNode.js (original)
+++ trunk/js/bxeXMLNode.js Thu Oct 6 19:02:48 2005
@@ -607,7 +607,7 @@
}
);
XMLNode.prototype.hasChildNodes = function() {
- if (typeof this.firstChild != "undefined" && this.firstChild != null) {
+ if (typeof this.firstChild != "undefined" && this.firstChild != null && this.firstChild._node.nodeValue != '') {
return true;
} else {
return false;
@@ -756,6 +756,8 @@
this._node.removeAttribute("_edom_tagnameopen");
}
+ this.parentNode.isNodeValid(true,2,false,true);
+
} else {
var ac = this.allowedChildren;
if (ac.length == 1) {
@@ -766,6 +768,7 @@
else {
var xmlstring = this.getBeforeAndAfterString(false,true);
this.setAttribute("_edom_tagnameopen",xmlstring[0]);
+ this.parentNode.isNodeValid(true,2,false,true);
}
}
}
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs