JQuery: DOM level event model support

In the previous posts, we’ve taken a peek at the several DOM levels that exist. In this post, we’ll see how JQuery supports these levels. Well, as you might expect, JQuery supports most of this stuff. The only thing that is not supported is the capture phase. In other words, you’ll only get bubbling events if you’re using JQuery.

To be honest, I still haven’t used any capture events until today. Probably that’s because IE doesn’t support it and since I need to write code that runs in IE, I never really explored its use. I guess that what I’m saying is that you’ll probably live without the capture phase, right?

Most of the other features presented on the DOM 3 level event model (if not all) are covered by JQuery. For instance, it hides IEs discrepancies on the Event object from you and, as we’ve seen, it ensures that handlers will always receive an Event object as its first parameter. And there’s not much to say about JQuery’s compatibility with the DOM level model. I guess there’s still a couple of things to talk about regarding events,but we’ll leave them for future posts.

Advertisements

~ by Luis Abreu on August 3, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: