r1723 - branches/bxe_2_0/relaxng

[email protected] Mon, 13 Aug 2007 14:15:41 +0200 (CEST)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Mon Aug 13 14:15:41 2007
New Revision: 1723

Log:
do not show errors, if in nonerror mode


Modified:
   branches/bxe_2_0/relaxng/ElementVDOM.js

Modified: branches/bxe_2_0/relaxng/ElementVDOM.js
==============================================================================
--- branches/bxe_2_0/relaxng/ElementVDOM.js	(original)
+++ branches/bxe_2_0/relaxng/ElementVDOM.js	Mon Aug 13 14:15:41 2007
@@ -167,11 +167,11 @@
 		}
 		// TRY TO CHECK HERE FOR NEEDED CHILDREN if there are any yet.
 		
-		
-		if(!ctxt.node.hasRealChildNodes() && !ctxt.node.canHaveText) {
-			
-				
+		if(! (ctxt.wFValidityCheckLevel & 2) && !ctxt.node.hasRealChildNodes() && !ctxt.node.canHaveText) {
 			var nctxt = new ContextVDOM(this.node, this);
+			nctxt.wFValidityCheckLevel = ctxt.wFValidityCheckLevel;
+			console.log(ctxt.wFValidityCheckLevel);
+		
 			if (nctxt.vdom) {
 				vdomLoop:
 				do {
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs