Ticket #2530379 (accepted defect)


Opened: 05/31/11
Last modified: 06/1/11
Status: accepted
Type: defect


Nicholas C. Zakas
Target Release:
Priority: P3 (normal)
Summary: event simulate dispatches "UIEvents" when it should be dispatching "HTMLEvents"

event-simulate.js lists the following events as UI events: blur, change, focus, resize, scroll and select.
triggering a simulated event results in a "UIEvents" custom event on dom compliant browsers.

according to the dom specs, http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-htmlevents these events are html events, and should be dispatching "HTMLEvents" objects.

according to the same document, "UIEvents" are: DOMFocusIn, DOMFocusOut and DOMActivate.

Type: defect Observed in Version: 3.3.0
Component: Event Severity: S3 (normal)
Assigned To: Nicholas C. Zakas Target Release:
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers: N/A
Test Information:

Change History

Luke Smith

YUI Contributor

  • Username: lsmith
  • GitHub: lsmith
Posted: 05/31/11
  • owner changed from Luke Smith to Nicholas C. Zakas
  • priority changed to P3 (normal)
  • status changed from new to assigned

Nicholas C. Zakas

YUI Developer

  • Username: nzakas
  • GitHub: nzakas
Posted: 06/1/11
  • status changed from assigned to accepted

This was intentional as when I first created the utility, simulating HTMLEvents didn't work properly. I can re-test to see if that has changed.