Skip to main content

Diigo Home

perfection kills » Blog Archive » Detecting event support without browser snif... - The Diigo Meta page

thinkweb2.com/...pport-without-browser-sniffing - Cached

This link has been bookmarked by 5 people . It was first bookmarked on 03 Apr 2009, by xingkui wang.

  • 15 Sep 09
  • 05 Apr 09
    gialloporpora
    gialloporpora

    One of the pain points of feature testing in client-side scripting is that for event support. DOM doesn’t really specify any means to detect exactly which events browser understands and can work with. If you’d like to know if a browser supports, say, “dblclick” event, you’re pretty much out of luck. This is probably the reason why so many scripts on the web employ unreliable browser sniffing in such cases. One of the most common events that people sniff for are IE’s proprietary mouseenter/mouseleave, Opera’s impotent contextmenu, and input-related onbeforepaste, onbeforecut, etc. which are present in IE and WebKit, but not in Mozilla-based browsers.

    javascript wedeveloper programming browser

  • 04 Apr 09
  • 03 Apr 09