Emmanuel Blot schrieb:
>> SVG hasn't popped up on the list yet, as far as I remember, but jQuery
>> is XML ready, so you should be able to use it for manipulating SVG...
> 
> I should say I'm a bit confused with the way SVG works.
> I'm using Firefox 2 (with the debugger)
> 
> For example, a test page contains the following element:
>   <circle class="jtip" stroke-width="3" stroke="#f0b8b8" cy="170.0"
> cx="281.0" r="29.0" fill="#a03030"/>
> but when I move the mouse over this item, Firefox reports
>   mouseover target = <svg class="[object SVGAnimatedString]">, ...
> 
> I'm confused about the class property here.
> Indeen, I can select any 'circle' item with $("circle"), but as soon
> as I add a class selector, such as $("circle.jtip"), jQuery finds no
> match.
> 
> Is there a specific syntax for SVG? Am I missing something obvious ?
> 
> Thanks,
> Manu

The special class selector exists for HTML only. In XML such as SVG an 
attribute with the name "class" is just an attribute as every other 
attribute and there's no such special selector.

Try: $('[EMAIL PROTECTED]"jtip"]')


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to