Re: <a> in text environment

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 UTC