Re: [css3-selectors] May ':active' be applied to "normal" elements or not?

On Thu, 19 Aug 2004, Lachlan Hunt wrote:
>
> Why can't it just detect if an event handler is attached to it during 
> the capture, or bubble phase?

Doing that is quite inefficient since you have to check the entire 
ancestor tree for capture and bubbling handlers, the element itself, any 
forwarded event handlers from an XBL binding, any XML Event handlers on 
all of those (if those aren't implemented as normal event handlers), and 
for an event handler attribute.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 18 August 2004 17:16:53 UTC