Re: focusin

Eric,

I expect you understand the distinction, but how does one set up a  
focusable element without using <a>?

I tried Q/A  using various methods with links, none of which worked,  
see attached file

also please note that the tab implementation seems to be buggy, else  
my example is poorly coded
bug-253740@bugs.opera.com

cheers

Jonathan Chetwynd

<?xml version="1.1"?>
<svg xmlns="http://www.w3.org/2000/svg"
      xmlns:xl="http://www.w3.org/1999/xlink"
      width="12em" height="12em" viewBox="0 0 240 240">
<g transform="translate(120,120)">
     <g id="m">
       <line stroke-width="4" y2="95" stroke="red" opacity=".9" />
         <animateTransform attributeName="transform" type="rotate"
            repeatCount="indefinite" dur="60min" by="360" />
       <circle r="6" fill="red"/>
     </g>
</g>
<a xl:href="http://www.peepo.com/alfi-x/radio/b.html"  
id="mfocus"><rect  x="230" y="166" width="20" height="18"  
fill="green" /></a>
   <animateTransform attributeName="transform" type="rotate"  
xl:href="#m" id="mup"
      additive="sum" repeatCount="indefinite" dur="48s" by="4320"  
fill="freeze"
      begin="mfocus.focusin;m.mousedown" end="mfocus.focusout"/>
</svg>




On 26 Feb 2007, at 09:40, Erik Dahlström wrote:


Hi Jonathan,

On Sun, 25 Feb 2007 21:35:40 +0100, Jonathan Chetwynd  
<j.chetwynd@btinternet.com> wrote:

>
> Chaals,
>
> I guess I'll be filing some focusin bugs around the UAs
> with a reduced test case!
>
> weirdly this code works with Opera, using not QA but tab.
> please don't ask why I tried tab key ~:"

I would guess it's because A/Q traverses links (and there's no link  
on your <a> element). Tab traverses focusable elements.

> initially it may require 6 or so tab hits, then another to stop...
> including semicolons for other events adds additional errors
> buggy but kinda intentional I guess
>
> cheers
>
> Jonathan Chetwynd
>
> added 2 lines to your code:
>
>     <a><rect id="mfocus" x="230" y="166" width="20" height="18"  
> fill="green" /></a>
>
> and swapped:
>       begin="mfocus.focusin" end="mfocus.focusout"/>
> for
>       begin="up.mouseover;r.click"  
> end="up.mouseup;up.mouseout;r.click"/>
>
...

/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Received on Monday, 26 February 2007 12:42:36 UTC