Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert JSDOM to use callback functions
This involves updating to webidl2js 16.2.0, which brings along other changes and improvements.
- Loading branch information
Showing
19 changed files
with
180 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// https://html.spec.whatwg.org/multipage/webappapis.html#eventhandlernonnull | ||
[LegacyTreatNonObjectAsNull] | ||
callback EventHandlerNonNull = any (Event event); | ||
typedef EventHandlerNonNull? EventHandler; | ||
|
||
// https://html.spec.whatwg.org/multipage/webappapis.html#onerroreventhandlernonnull | ||
[LegacyTreatNonObjectAsNull] | ||
callback OnErrorEventHandlerNonNull = any ( | ||
(Event or DOMString) event, | ||
optional DOMString source, | ||
optional unsigned long lineno, | ||
optional unsigned long colno, | ||
optional any error | ||
); | ||
typedef OnErrorEventHandlerNonNull? OnErrorEventHandler; | ||
|
||
// https://html.spec.whatwg.org/multipage/webappapis.html#onbeforeunloadeventhandlernonnull | ||
[LegacyTreatNonObjectAsNull] | ||
callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event); | ||
typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.