Re: mouseenter, mouseleave

On Fri, Jul 31, 2009 at 4:26 AM, Martijn<martijn.martijn@gmail.com> wrote:
> On Fri, Jul 31, 2009 at 10:02 AM, Maciej Stachowiak<mjs@apple.com> wrote:
>>
>> On Jul 31, 2009, at 12:26 AM, Garrett Smith wrote:
>>> Isn't that what I just explained 31 minutes prior?
>>
>> I didn't read your message before posting. I suspect many people won't read
>> your message at all, due to your chronic insufferable rudeness. So perhaps
>> those people will find my explanation helpful.
>
> I couldn't find any rudeness in that message at all.
>

Neither could I and apparently we were discussing the same thing as no
correction to my explanation was forthcoming.

Mouseleave events are not practical for cross browser development
because they aren't implemented in many browsers. Changing that still
leaves a problem:

How do I detect "onmouseleave" support?

One possibility would be to have a there is a mouseleave property on
the element. That way, its presence could be detected:-

"onmouseleave" in el;

- ideally true

Gecko doesn't do that. For example:-

'onclick' in document.createElement("div");

false in Gecko.


> Btw, I think that mouseenter/mouseleave would also beneficial for
> tooltip handling in Mozilla. There is for instance
> https://bugzilla.mozilla.org/show_bug.cgi?id=301317 which could be
> fixed by using the mouseenter/mouseleave events, I think.
>

Seems relevant.

> Regards,
> Martijn
>
>> Regards,
>> Maciej
>>

Garrett

Received on Friday, 31 July 2009 20:40:41 UTC