X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_DomQuery.js.html;h=254471df33910a13866b678f40003271b79d0d8b;hp=b3cfbb90c9d806f6e62e573450464de8fbd2c57c;hb=548db99acb22d3a26a190b77728b3b77575d93e1;hpb=7700b2c5de4e083e5c3b3d46cc4e2ff2ab68aab1 diff --git a/docs/src/Roo_DomQuery.js.html b/docs/src/Roo_DomQuery.js.html index b3cfbb90c9..254471df33 100644 --- a/docs/src/Roo_DomQuery.js.html +++ b/docs/src/Roo_DomQuery.js.html @@ -128,7 +128,11 @@ All selectors, attribute filters and pseudos below can be combined infinitely in } 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; } } @@ -146,7 +150,7 @@ All selectors, attribute filters and pseudos below can be combined infinitely in 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]; @@ -250,7 +254,7 @@ All selectors, attribute filters and pseudos below can be combined infinitely in 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"){