You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2007/04/02 22:38:10 UTC

svn commit: r524957 - /incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js

Author: jmargaris
Date: Mon Apr  2 15:38:04 2007
New Revision: 524957

URL: http://svn.apache.org/viewvc?view=rev&rev=524957
Log:
pass unrecognized attributes to underlying HTML nodes, not sure
if that really makes sense in all cases or not

Modified:
    incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js

Modified: incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js?view=diff&rev=524957&r1=524956&r2=524957
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/basic/AbstractWidgetBridge.js Mon Apr  2 15:38:04 2007
@@ -507,8 +507,12 @@
 			setterFunction.call(this,value) ;
 	}
 	else{
-		
-		//TODO have a strict mode and report some unrecognized atts?
+		// passthrough unknown attribute to peer, we want to do this at least for ID
+		// not sure about other attributes...this will pass through things like
+		// onCommand which is bad...IMPORTANT revisit this
+		if (this.getRootDomNode()){
+			this.getRootDomNode().setAttribute(name,value);
+		}
 	}	
 }