r1740 - branches/bxe_2_0/relaxng
[email protected] Sat, 18 Aug 2007 12:41:30 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Sat Aug 18 12:41:30 2007
New Revision: 1740
Log:
fix parse error, when noch child in bxe:onempty
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 Sat Aug 18 12:41:30 2007
@@ -445,7 +445,11 @@
break;
case "onempty":
this.bxeOnemptyType = childNodes[i].getAttribute("type");
- this.bxeOnempty = childNodes[i].firstChild.data;
+ if (childNodes[i].firstChild) {
+ this.bxeOnempty = childNodes[i].firstChild.data;
+ } else {
+ this.bxeOnempty = true;
+ }
break;
case "dontshow":
this.bxeDontshow = true;
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs