Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete GlobalEventHandlers.ondurationchange #17508

Merged
merged 2 commits into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8118,7 +8118,7 @@
/en-US/docs/Web/API/GlobalEventHandlers/GlobalEventHandlers.oncanplay /en-US/docs/Web/API/GlobalEventHandlers/oncanplay
/en-US/docs/Web/API/GlobalEventHandlers/GlobalEventHandlers.oncanplaythrough /en-US/docs/Web/API/GlobalEventHandlers/oncanplaythrough
/en-US/docs/Web/API/GlobalEventHandlers/GlobalEventHandlers.oncuechange /en-US/docs/Web/API/TextTrack/cuechange_event
/en-US/docs/Web/API/GlobalEventHandlers/GlobalEventHandlers.ondurationchange /en-US/docs/Web/API/GlobalEventHandlers/ondurationchange
/en-US/docs/Web/API/GlobalEventHandlers/GlobalEventHandlers.ondurationchange /en-US/docs/Web/API/HTMLMediaElement/durationchange_event
/en-US/docs/Web/API/GlobalEventHandlers/GlobalEventHandlers.onemptied /en-US/docs/Web/API/GlobalEventHandlers/onemptied
/en-US/docs/Web/API/GlobalEventHandlers/GlobalEventHandlers.onended /en-US/docs/Web/API/GlobalEventHandlers/onended
/en-US/docs/Web/API/GlobalEventHandlers/GlobalEventHandlers.oninvalid /en-US/docs/Web/API/GlobalEventHandlers/oninvalid
Expand All @@ -8135,6 +8135,7 @@
/en-US/docs/Web/API/GlobalEventHandlers/onabort /en-US/docs/Web/API/HTMLMediaElement/abort_event
/en-US/docs/Web/API/GlobalEventHandlers/oncuechange /en-US/docs/Web/API/TextTrack/cuechange_event
/en-US/docs/Web/API/GlobalEventHandlers/ondragexit /en-US/docs/Web/API/GlobalEventHandlers/ondragleave
/en-US/docs/Web/API/GlobalEventHandlers/ondurationchange /en-US/docs/Web/API/HTMLMediaElement/durationchange_event
/en-US/docs/Web/API/GlobalEventHandlers/onmozfullscreenchange /en-US/docs/Web/API/Document/fullscreenchange_event
/en-US/docs/Web/API/GlobalEventHandlers/onmozfullscreenerror /en-US/docs/Web/API/Document/fullscreenerror_event
/en-US/docs/Web/API/GlobalEventHandlers/onpointerdown/drag /en-US/docs/Web/API/GlobalEventHandlers/ondrag
Expand Down
12 changes: 0 additions & 12 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -44482,18 +44482,6 @@
"AFBarstow"
]
},
"Web/API/GlobalEventHandlers/ondurationchange": {
"modified": "2020-10-15T21:43:47.156Z",
"contributors": [
"suvyme",
"mfluehr",
"fscholz",
"sideshowbarker",
"wbamberg",
"rolfedh",
"Guillaume-Heras"
]
},
"Web/API/GlobalEventHandlers/onemptied": {
"modified": "2020-10-15T21:44:06.259Z",
"contributors": [
Expand Down
2 changes: 0 additions & 2 deletions files/en-us/web/api/globaleventhandlers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ These event handlers are defined on the {{domxref("GlobalEventHandlers")}} mixin
- : An [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{domxref("HTMLElement/dragstart_event", "dragstart")}} event is raised.
- {{domxref("GlobalEventHandlers.ondrop")}}
- : An [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{domxref("HTMLElement/drop_event", "drop")}} event is raised.
- {{domxref("GlobalEventHandlers.ondurationchange")}}
- : An [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{event("durationchange")}} event is raised.
- {{domxref("GlobalEventHandlers.onemptied")}}
- : An [event handler](/en-US/docs/Web/Events/Event_handlers) representing the code to be called when the {{event("emptied")}} event is raised.
- {{domxref("GlobalEventHandlers.onended")}}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,19 @@ browser-compat: api.HTMLMediaElement.durationchange_event

The `durationchange` event is fired when the `duration` attribute has been updated.

<table class="properties">
<tbody>
<tr>
<th scope="row">Bubbles</th>
<td>No</td>
</tr>
<tr>
<th scope="row">Cancelable</th>
<td>No</td>
</tr>
<tr>
<th scope="row">Interface</th>
<td>{{DOMxRef("Event")}}</td>
</tr>
<tr>
<th scope="row">Target</th>
<td>Element</td>
</tr>
<tr>
<th scope="row">Default Action</th>
<td>None</td>
</tr>
<tr>
<th scope="row">Event handler property</th>
<td>
{{domxref("GlobalEventHandlers.ondurationchange")}}
</td>
</tr>
</tbody>
</table>
## Syntax

Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property.

```js
addEventListener('durationchange', event => { });

ondurationchange = event => { };
```

## Event type

A generic {{domxref("Event")}}.

## Examples

Expand Down