Bug Tracker

Modify

Ticket #11936 (closed bug: cantfix)

Opened 11 months ago

Last modified 11 months ago

$(window).one("click", ....) does not work in IE7

Reported by: Philipp Klose <me@…> Owned by: Philipp Klose <me@…>
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

$(window).one("click", ....) does not work in IE7 but work in all other browsers I tested.

I would be nice if this could unified by either disabling this on all other browser or using a workaround on IE7. (E.g.: $('body').one('click', ...) does work.

Change History

comment:1 Changed 11 months ago by rwaldron

  • Owner set to Philipp Klose <me@…>
  • Status changed from new to pending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket!

Additionally, be sure to test against the "jQuery (edge)" version to ensure the issue still exists. To get you started, use this boilerplate:  http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to begin.

comment:2 Changed 11 months ago by Philipp Klose <me@…>

  • Status changed from pending to new

Bug still exists in jQuery (edge).

Example:  http://jsfiddle.net/WtT3L/2/ (requires IE7 for testing ;-)

comment:3 Changed 11 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to cantfix

The browsers are all doing the correct thing for their era. DOM2 Events said that events did not have to bubble to window but DOM3 Events says they do. A .trigger()ed event bubbles in all browsers, but that's because we do the bubbling ourselves.

There's no reason to listen for bubbling native events on window, use document instead since that works on all browsers regardless of their vintage.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.