r1691 - branches/bxe_2_0/relaxng

[email protected] Thu, 26 Jul 2007 12:46:12 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Thu Jul 26 12:46:12 2007
New Revision: 1691

Log:
ix for BXEB-23
bxe:onempty-Tag in NG tut gar nicht. BXE startet nicht (zeigt leeres Dokument)
(do not bail out, if no child element like with type=delete)


Modified:
   branches/bxe_2_0/relaxng/RelaxNG.js

Modified: branches/bxe_2_0/relaxng/RelaxNG.js
==============================================================================
--- branches/bxe_2_0/relaxng/RelaxNG.js	(original)
+++ branches/bxe_2_0/relaxng/RelaxNG.js	Thu Jul 26 12:46:12 2007
@@ -438,7 +438,9 @@
 					break;
 				case "onnew":
 					this.bxeOnnewType = childNodes[i].getAttribute("type");
-					this.bxeOnnew = childNodes[i].firstChild.data;
+					if (childNodes[i].firstChild) {
+						this.bxeOnnew = childNodes[i].firstChild.data;
+					}
 					break;
 				case "onempty":
 					this.bxeOnemptyType = childNodes[i].getAttribute("type");
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs