W3C home > Mailing lists > Public > www-svg@w3.org > February 2007

Re: <a> in text environment

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 15 Feb 2007 11:41:59 +0100
To: "Jonathan Watt" <jwatt@jwatt.org>, www-svg@w3.org
Message-ID: <op.tnsdb90464w2qv@id-c0020>

On Thu, 15 Feb 2007 11:31:54 +0100, Jonathan Watt <jwatt@jwatt.org> wrote:
>> SVG allows nested links; the innermost link wins in the case of
>> overlapping links. I just mention that in case it affects the way your
>> implementation finds which link to activate.
>
> Oh boy, that's a can of worms. I tried to patch Mozilla to make it work  
> that way for general XLink and XHTML links. Turns out that raises  
> unfortunate issues. There are multiple discussions scattered over a  
> dozen or so Mozilla bugs and in Mozilla newsgroups on that. For example  
> https://bugzilla.mozilla.org/show_bug.cgi?id=127903
>
> Not that I have any intention on getting into a discussion about this  
> now, but I thought you might like to know.

We discussed this in #webapi a while ago in the context of HTML5 and DOM  
Level 3 Events. DOM Level 3 Events will define "activation behavior" which  
in turn will say that the first element with "activation behavior" the  
dispatched event (click, DOMActivate) comes across will have it triggered  
and that after that no other elements with "activation behavior" can be  
triggered by the event.

This matches how stuff like

   <form action=http://google.com/>
    <a href=http://yahoo.com/>
     yy
     <input type=submit value=gg>
    </a>
   </form>

is implemented in Internet Explorer, Safari and Opera (iirc)...


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 15 February 2007 10:42:07 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:36 GMT