mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Differentiate between error and non-error event handlers per the spec.
This commit is contained in:
parent
b40882093a
commit
2340583e56
9 changed files with 118 additions and 59 deletions
|
@ -24,6 +24,7 @@ typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
|
|||
[NoInterfaceObject]
|
||||
interface GlobalEventHandlers {
|
||||
attribute EventHandler onclick;
|
||||
attribute OnErrorEventHandler onerror;
|
||||
attribute EventHandler onload;
|
||||
attribute EventHandler oninput;
|
||||
attribute EventHandler onkeydown;
|
||||
|
@ -38,18 +39,3 @@ interface WindowEventHandlers {
|
|||
attribute EventHandler onunload;
|
||||
attribute EventHandler onstorage;
|
||||
};
|
||||
|
||||
// The spec has |attribute OnErrorEventHandler onerror;| on
|
||||
// GlobalEventHandlers, and calls the handler differently depending on
|
||||
// whether an ErrorEvent was fired. We don't do that, and until we do we'll
|
||||
// need to distinguish between onerror on Window or on nodes.
|
||||
|
||||
/*[NoInterfaceObject]
|
||||
interface OnErrorEventHandlerForNodes {
|
||||
attribute EventHandler onerror;
|
||||
};*/
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface OnErrorEventHandlerForWindow {
|
||||
attribute OnErrorEventHandler onerror;
|
||||
};
|
||||
|
|
|
@ -161,7 +161,6 @@ partial interface Window {
|
|||
void gc();
|
||||
void trap();
|
||||
};
|
||||
Window implements OnErrorEventHandlerForWindow;
|
||||
|
||||
// WebDriver extensions
|
||||
partial interface Window {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue