This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25477 - KeyboardEvent.initKeyboardEvent() needs correct
Summary: KeyboardEvent.initKeyboardEvent() needs correct
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - DOM3 Events (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Travis Leithead [MSFT]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-26 16:57 UTC by Arkadiusz Michalski (Spirit)
Modified: 2014-05-09 19:36 UTC (History)
2 users (show)

See Also:


Attachments

Description Arkadiusz Michalski (Spirit) 2014-04-26 16:57:43 UTC
Legacy  KeyboardEvent.initKeyboardEvent() method (https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-interface-KeyboardEvent-initializers) doesn't fit into any implementations. 

IE missing 'detail' and add 'locale' (http://msdn.microsoft.com/en-us/library/ie/ff975297%28v=vs.85%29.aspx). Chrome is incompatible with D3E. In Firefox this method was implemented in Nightly 31 like D3E defined (https://bugzilla.mozilla.org/show_bug.cgi?id=930893) but breaks feature detection and fast removed (https://bugzilla.mozilla.org/show_bug.cgi?id=999645).

This should be somehow defined correctly or completely remove from the specification (if there is no compromise).
Comment 1 Travis Leithead [MSFT] 2014-04-30 00:31:03 UTC
I think we should align this with IE, which has been shipping this the longest, and then continue to support the "deprecated" state of this API.
Comment 2 Travis Leithead [MSFT] 2014-04-30 00:34:54 UTC
(I also need to check initCompositionEvent... since 'locale' may have been present also...)
Comment 3 Arkadiusz Michalski (Spirit) 2014-04-30 03:09:35 UTC
initCompositionEvent() was already discussed and corrected:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25295#c3

but still with small bug with nullable for .locale (and maybe .data)
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25405#c2
Comment 4 Travis Leithead [MSFT] 2014-05-09 19:36:36 UTC
initKeyboardEvent has been reverted back to its earlier compatible argument list (similar to initCompositionEvent). I added a few notes in case anyone notices the oddity about these two method signatures. This should at least align with IE which has shipped this for quite a few years now.

https://dvcs.w3.org/hg/dom3events/rev/54f8f8612b94