forked from capricorn86/happy-dom
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
capricorn86#475@minor: Adds support for HTMLMediaElement.
- Loading branch information
Showing
12 changed files
with
941 additions
and
5 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
11 changes: 11 additions & 0 deletions
11
packages/happy-dom/src/nodes/html-audio-element/HTMLAudioElement.ts
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,11 @@ | ||
import HTMLMediaElement from '../html-media-element/HTMLMediaElement'; | ||
import IHTMLAudioElement from './IHTMLAudioElement'; | ||
|
||
/** | ||
* HTML Audio Element. | ||
* | ||
* Reference: | ||
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement. | ||
* | ||
*/ | ||
export default class HTMLAudioElement extends HTMLMediaElement implements IHTMLAudioElement {} |
11 changes: 11 additions & 0 deletions
11
packages/happy-dom/src/nodes/html-audio-element/IHTMLAudioElement.ts
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,11 @@ | ||
import IHTMLMediaElement from '../html-media-element/IHTMLMediaElement'; | ||
|
||
/** | ||
* HTML Audio Element. | ||
* | ||
* Reference: | ||
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement. | ||
*/ | ||
|
||
type IHTMLAudioElement = IHTMLMediaElement; | ||
export default IHTMLAudioElement; |
Oops, something went wrong.