Skip to main content

Search and Top Navigation

#3229 closed bug (fixed)

Opened August 18, 2008 10:31PM UTC

Closed November 07, 2011 08:49PM UTC

Last modified January 12, 2012 02:07PM UTC

Safari: jQuery.simulate() doesn't set "which" field for key events

Reported by: anonymous Owned by: rdworth
Priority: major Milestone: 1.8.18
Component: [meta] ui.test Version: 1.5.1
Keywords: Safari, simulate, keystroke Cc:
Blocked by: Blocking:
Description

In Safari:

When jQuery.simulate() calls document.createEvent("KeyEvents"), it fails. It falls through to the catch clause, which tries document.createEvent("Events"), which succeeds, but the key event that results doesn't have its "which" field set.

Attachments (0)
Change History (6)

Changed September 16, 2008 10:28AM UTC by paul comment:1

owner: paulrdworth
status: newassigned

Changed November 12, 2008 11:08AM UTC by rdworth comment:2

component: ui.core[internal] ui.test

Changed November 03, 2011 12:28PM UTC by scottgonzalez comment:3

milestone: TBD1.9

Changed November 07, 2011 08:49PM UTC by Richard D. Worth comment:4

resolution: → fixed
status: assignedclosed

Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari: jQuery.simulate() doesn't set "which" field for key events

Changeset: b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f

Changed January 12, 2012 02:07PM UTC by Richard D. Worth comment:5

Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari: jQuery.simulate() doesn't set "which" field for key events

(cherry picked from commit b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f)

Changeset: 2e1da90608e0d442f1e03508e65875c6949bc250

Changed January 12, 2012 02:07PM UTC by scottgonzalez comment:6

milestone: 1.91.8.18