HTML::O...t::Audio(3)
π NAME π
okay so this is the manual page for HTML::O...t::Audio(3) from the User Contributed Perl Documentation β yes, the name is literally truncated with the dots, she's iconic like that. The class is HTML::Object::DOM::Element::Audio β HTML Object DOM Audio Class, periodt. π
β¨ SYNOPSIS β¨
bestie, here's the starter pack exactly as written:
use HTML::Object::DOM::Element::Audio;
my $audio = HTML::Object::DOM::Element::Audio->new ||
die( HTML::Object::DOM::Element::Audio->error, "\n" );
<h2>Audio inserted with JavaScript</h2>
<div id="myAudio"></div>
my $div = document.getElementById( 'myAudio' );
# Create an element <audio>
my $audio = document.createElement('audio');
# Set the attributes of the video
$audio->src = 'https://example.org/some/where/audio/audio.ogg';
$audio->controls = 1; # true
# Add the aido to <div>
$div->appendChild( $audio );
Result:
<h2>Audio inserted with JavaScript</h2>
<div id="myAudio"></div>
<audio src="https://example.org/some/where/audio/audio.ogg" controls=""></audio>
</div>
π¦ VERSION π¦
It's v0.2.0. Short, sweet, slay. β¨
πΈ DESCRIPTION πΈ
This interface provides access to the properties of <audio> elements, as well as methods to manipulate them. That's the whole vibe check β no extra lore.
π INHERITANCE π
The family tree is literally this exact diagram, no cap:
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-----------------------------------+ +-----------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Media | --> | HTML::Object::DOM::Element::Audio |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-----------------------------------+ +-----------------------------------+
π PROPERTIES π
Inherits properties from its parent HTML::Object::DOM::Element::Media β that's the tea, bestie. π«Ά
π₯ METHODS π₯
Inherits methods from its parent HTML::Object::DOM::Element::Media β same energy, same parent, periodt. π
π§ AUTHOR π§
Jacques Deguest <jack@deguest.jp> β icon behavior. π
β SEE ALSO β
- Mozilla documentation β
https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement - Mozilla documentation on audio element β
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio - Wikipedia on audio file formats β
https://en.wikipedia.org/wiki/Audio_file_format
π COPYRIGHT & LICENSE π
Copyright(c) 2021 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
mwah π β this page came from perl v5.42.2, dated 2026-02-15, with the footer name HTML::O...t::Audio(3). that's the whole manual, bestie π«Ά
π¦ where this page comes from
- alpine 3.24: perl-html-object-doc 0.6.0-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms