X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-core-debug.js;h=54ce8c6b7ccff17237e40afdac945446e5444c5b;hb=12b0ee7b53b7f55de8b2921fdff7136ca559fd37;hp=3853711378a85b59dcd3b95db018214963f6cd60;hpb=b686cdf32d09fa09eb2928f75629e5b1f1b00d39;p=roojs1 diff --git a/roojs-core-debug.js b/roojs-core-debug.js index 3853711378..54ce8c6b7c 100644 --- a/roojs-core-debug.js +++ b/roojs-core-debug.js @@ -5066,7 +5066,11 @@ Roo.DomQuery = function(){ } var r = [], ri = -1, cn; for(var i = 0, ci; ci = c[i]; i++){ - if((' '+ci.className+' ').indexOf(v) != -1){ + + + if((' '+ + ( (ci instanceof SVGElement) ? ci.className.baseVal : ci.className) + +' ').indexOf(v) != -1){ r[++ri] = ci; } } @@ -5084,7 +5088,7 @@ Roo.DomQuery = function(){ return n.htmlFor; } if(attr == "class" || attr == "className"){ - return n.className; + return (n instanceof SVGElement) ? n.className.baseVal : n.className; } return n.getAttribute(attr) || n[attr]; @@ -5188,7 +5192,7 @@ Roo.DomQuery = function(){ a = Roo.DomQuery.getStyle(ci, attr); } else if(attr == "class" || attr == "className"){ - a = ci.className; + a = (ci instanceof SVGElement) ? ci.className.baseVal : ci.className; }else if(attr == "for"){ a = ci.htmlFor; }else if(attr == "href"){ @@ -8297,7 +8301,7 @@ if(opt.anim.isAnimated()){ //action on double tap goes below }, - + /** * Removes an event handler from this element * @param {String} eventName the type of event to remove