- isXUL = Ext.isGecko ? function(node){
- return Object.prototype.toString.call(node) == '[object XULElement]';
- } : function(){
- }, isTextNode = Ext.isGecko ? function(node){
- try{
- return node.nodeType == 3;
- }catch (e){
- return false;
- }
- } : function(node){
- return node.nodeType == 3;
- }, elContains = function(parent, child){