[DOM-Events] Comments on Editor's Draft 20 July 2009

1) Confusion around usage of "event type"
   In different parts of the specification "event type" is referred to as "event name" or as "event interface". For example (4.5.1 Interface DocumentEvent), the createEvent is said to take eventType argument, that is in fact name of interface, or what it is used to be called at some point, event group. At the same time section "5.1 Event Types" lists all event types, that are "events" or "event names". If I just read specification, I would try calling createEvent("click") that is wrong.
   It would be more clear to the reader if there were two distinct terms used for two different concerns.

2) "keydown" event repetition
   There is a disagreement between browsers vendors on whether or not this event should be repetitive when user presses a key and holds it longer (for example, Opera does not repeat this event, while the others do). The specification should indicate on what behavior is expected from an UA. In case the event shall repeat, it would be nice to see how many times did it repeat.

3) The submit/change and other events that have different interfaces.
   I think using different interfaces for same events creates unreasonably more complex coding experience. Why not letting these events to have UIEvent interface always?
   Consider here click event having MouseEvent interface even when synthesized from calling Element.click() 

4) Broken link to the archive in the "Status of this Document" section


http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html

Sergey Ilinsky/


      

Received on Monday, 20 July 2009 10:28:04 UTC