X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=7fafc80751c6299c343e30e369edfa57b5543758;hb=548db99acb22d3a26a190b77728b3b77575d93e1;hp=9499a4311437c90db06771fe8154a453c3784e17;hpb=b686cdf32d09fa09eb2928f75629e5b1f1b00d39;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index 9499a43114..7fafc80751 100644 --- a/roojs-debug.js +++ b/roojs-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