Hi Phil,

On Thu, 21 Feb 2008 00:09:18 +0100, philsvg <[EMAIL PROTECTED]> wrote:

> Hello Erik,
>
> You're right!
>
> with Opera :
> evt.target: [object SVGElementInstance]evt.currentTarget: [object
> SVGUseElement]
>
> With FFX :
> evt.target: [object SVGUseElement]evt.currentTarget: [object
> SVGUseElement]
>
> So, to deal with evt, i use now :
> if (typeof evt.target.id != 'undefined') // don't find a better way
> to check
> {
> objet=evt.target.getAttributeNS(null,"id");
> }
> else {
> objet=evt.currentTarget.getAttributeNS(null,"id");
> }

It seems you are not interested in the id:s of the <use>:d elements, only  
the id:s of the <use> elements themselves. If that's true then you can use  
evt.currentTarget everywhere and just remove the unnecessary specialcasing.

> Now I can fill shapes with bitmaps patterns and compare patterns with
> IE, FFX and Opera : ex-equo IE and Opera, FFX shows white line at
> junction(varying when zooming).

Perhaps those are anti-aliasing or alignment issues? You can always play  
with the 'image-rendering' and 'shape-rendering' properties to see if that  
helps.

> As i use svg like a simple scripting language, i find IMHO that it is
> not consistent to have two different syntaxes to access to an object
> (is it for secutity issues?). I see that i will have to deal with
> that for groups ...

Oh? Is this not the same as the issue with SVGElementInstance? Feel free  
to share some more details. :)

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed


-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to