Hello Olaf,
It's always useful if such bugreports go directly to the Opera bugtracker
(as early as possible), http://bugs.opera.com/wizard.
I've logged this now as bug #345632.
Anyway, in theory you should be able to use something like this in your
example:
<style type="text/css">
rect:hover { stroke: red; }
</style>
I think that's marginally cleaner than changing the stroke in script, but
of course that still doesn't solve the problem with elements that are
taken out of the tree.
Cheers
/Erik
On Thu, 03 Jul 2008 12:25:32 +0200, Olaf Schnabel <[EMAIL PROTECTED]>
wrote:
> I found a workaround for the problem. I just copied the geometry
> attributes of the active rectangle to a new rectangle on top of the SVG
> group and applied there the new stroke style. On mouseout the geometry
> of the new rectangle is deleted.
>
> But this is just a workaround, the problem still remains. Opera and the
> Adobe Plugins (3 and 6prealpha) both lose the focus on an active element
> if it is moved in the DOM. I think this is a bug.
>
> Regards
> Olaf
>
> Olaf Schnabel wrote:
>>
>>
>> Hi developers
>>
>> I need a workaround for an appendChild problem in Opera 9.5 and IE7
>> (ASV6 installed), in Firefox 3 it works fine. In my small example
>> http://www.ika.ethz.ch/schnabel/append.svg
>> <http://www.ika.ethz.ch/schnabel/append.svg> I have several rectangles.
>> In
>> a first step, the stroke of the active rectangle is set to "red" on
>> mouseover. Then, the active rectangle is set on top of all other
>> rectangles via appendChild. This works in all browsers but Opera 9.5 and
>> ASV6 seem to lose the focus on the active rectangle. Therefore, the
>> onmouseout event (set stroke to "none") doesn't work anymore (except
>> Firefox 3, which seems to interpret the code correct for me).
>> Has anyone a workaround for this problem?
>>
>> Thanks for your answers
>> Olaf
>
>
--
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/