Re: focusin


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


Jonathan Chetwynd

<?xml version="1.1"?>
<svg xmlns=""
      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"/>
<a xl:href=""  
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"  
      begin="mfocus.focusin;m.mousedown" end="mfocus.focusout"/>

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

Hi Jonathan,

On Sun, 25 Feb 2007 21:35:40 +0100, Jonathan Chetwynd  
<> 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;"  
> end="up.mouseup;up.mouseout;"/>


Using Opera's revolutionary e-mail client:

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