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 22847 - Add dummy captureEvents/releaseEvents to document/window
Summary: Add dummy captureEvents/releaseEvents to document/window
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-31 17:35 UTC by Olli Pettay
Modified: 2013-08-05 18:06 UTC (History)
4 users (show)

See Also:


Attachments

Description Olli Pettay 2013-07-31 17:35:59 UTC
Looks like some non-old-IE code paths expects the methods to exist.

https://bugzilla.mozilla.org/show_bug.cgi?id=673919#c12
Comment 1 Masatoshi Kimura 2013-07-31 21:14:54 UTC
Is routeEvent() also needed? IE11 added dummy captureEvents/releaseEvents, but did not add routeEvent. Chrome didn't support routeEvent from the start.
Comment 2 Ian 'Hixie' Hickson 2013-07-31 21:24:15 UTC
Should probably keep this closer to the actual DOM Events methods.
Comment 3 Olli Pettay 2013-07-31 22:30:10 UTC
Ah, routeEvent isn't needed.

This has nothing to do with event handling. captureEvents/releaseEvents
are just dummy methods. Netscape 4 had some implemention.
The methods should be added to (HTML)Document and window, so I think
HTML spec is the natural place.
Comment 4 Ian 'Hixie' Hickson 2013-08-01 17:27:33 UTC
Ok, can you elaborate on precisely what methods you want added? I need the interfaces they're on, the method names, their return values, their signatures, and what IDL attributes they should have.
Comment 5 Masatoshi Kimura 2013-08-04 03:12:15 UTC
Here is my proposal:
[NoInterfaceObject]
interface EventTargetObsolete {
  // dummy no-op methods for lagacy compatibility
  void captureEvents(long eventFlags);
  void releaseEvents(long eventFlags);
};

Window implements EventTargetObsolete;
HTMLDocument implements EventTargetObsolete;
Comment 6 Ian 'Hixie' Hickson 2013-08-05 18:06:15 UTC
Oh, it's on Window _and_ Document, interesting. Ok. Thanks. Done.
Comment 7 contributor 2013-08-05 18:06:48 UTC
Checked in as WHATWG revision r8127.
Check-in comment: Add some obsolete methods that don't do anything but are needed for compat.
http://html5.org/tools/web-apps-tracker?from=8126&to=8127