r1665 - branches/bxe_2_0/relaxng
[email protected] Thu, 3 May 2007 16:55:47 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Thu May 3 16:55:46 2007
New Revision: 1665
Log:
try these for avoiding recursions
Modified:
branches/bxe_2_0/relaxng/ElementVAL.js
Modified: branches/bxe_2_0/relaxng/ElementVAL.js
==============================================================================
--- branches/bxe_2_0/relaxng/ElementVAL.js (original)
+++ branches/bxe_2_0/relaxng/ElementVAL.js Thu May 3 16:55:46 2007
@@ -25,6 +25,7 @@
// everything which isn't an Element, can't have children
if (typeof this._allowedChildren == "undefined") {
var ctxt = new ContextVDOM(this,this.vdom);
+
var ac = new Array();
var subac = null;
try{
@@ -181,10 +182,11 @@
XMLNodeElement.prototype.__defineGetter__ ("canHaveText",
function() {
- if (this.vdom ==null || typeof this.vdom == "undefined") {
+ if (this._vdom ==null || typeof this._vdom == "undefined" ) {
//bad hack...
return true;
} else if ( typeof this.vdom._canHaveText == "undefined") {
+
var ac = this.allowedChildren;
if (ac) {
for (var i = 0; i < ac.length; i++) {
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs