HTML::O...:Output(3)
π NAME π
This is the manual page for HTML::O...:Output(3), aka HTML::Object::DOM::Element::Output β the HTML Object DOM Output Class. Bestie, itβs giving very specific DOM-element energy, and weβre gonna get into all of it. π
β¨ SYNOPSIS β¨
use HTML::Object::DOM::Element::Output;
my $output = HTML::Object::DOM::Element::Output->new ||
die( HTML::Object::DOM::Element::Output->error, "\n" );
π VERSION π
v0.2.0
π¦ DESCRIPTION π¦
Okay so this interface provides properties and methods β beyond those inherited from HTML::Object::Element β for manipulating the layout and presentation of "<output"> elements. Lowkey iconic, no cap. π
π INHERITANCE π
The whole family tree is right here, bestie:
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +------------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Output |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +------------------------------------+
πΈ PROPERTIES πΈ
Inherits properties from its parent HTML::Object::DOM::Element.
π defaultValue π
A string representing the default value of the element, initially the empty string.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/defaultValue
π form π
Read-only.
An HTML::Object::DOM::Element::Form indicating the form associated with the control, reflecting the form HTML attribute if it is defined.
Example:
<form
action="/action_page.php"
id="numform"
oninput="x.value=parseInt(a.value)+parseInt(b.value)">
<input type="range" id="a" name="a" value="50" />
+ <input type="number" id="b" name="b" value="25" />
<input type="submit" />
</form>
<output form="numform" id="x" name="x" for="a b"></output>
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/form
π htmlFor π
Read-only.
A TokenList reflecting the for HTML attribute, containing a list of IDs of other elements in the same document that contribute to (or otherwise affect) the calculated value.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/htmlFor
π labels π
Read-only.
Returns a HTML::Object::DOM::NodeList of <label|HTML::Object::DOM::Element::Label> elements associated with the element.
Example:
<label id="label1" for="test">Label 1</label>
<output id="test">Output</output>
<label id="label2" for="test">Label 2</label>
use HTML::Object::DOM qw( window );
window->addEventListener( DOMContentLoaded => sub
{
my $output = $doc->getElementById( 'test' );
for( my $i = 0; $i < $output->labels->length; $i++ )
{
say( $output->labels->[$i]->textContent ); # "Label 1" and "Label 2"
}
});
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/labels
π name π
A string reflecting the name HTML attribute, containing the name for the control that is submitted with form data.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/name
π type π
Normally this is read-only, but under perl you can set whatever string value you want. By default the value is "output".
Under JavaScript, this is a read-only property that returns the string "output".
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/type
π validationMessage π
Read-only.
A string representing a localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willValidate is false), or it satisfies its constraints.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validationMessage
π validity π
Read-only.
A "ValidityState" representing the validity states that this element is in.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validity
π value π
A string representing the value of the contents of the elements. Behaves like the "textContent" in HTML::Object::DOM::Node property.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/value
π willValidate π
Read-only.
A boolean value indicating whether the element is a candidate for constraint validation.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/willValidate
π METHODS π
Inherits methods from its parent HTML::Object::DOM::Element.
π§ checkValidity π§
Checks the validity of the element and returns a boolean value holding the check result.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/checkValidity
π§ reportValidity π§
This method reports the problems with the constraints on the element, if any, to the user. If there are problems, fires an invalid event at the element, and returns false; if there are no problems, it returns true. When the problem is reported, the user agent may focus the element and change the scrolling position of the document or perform some other action that brings the element to the user's attention. User agents may report more than one constraint violation if this element suffers from multiple problems at once. If the element is not rendered, then the user agent may report the error for the running script instead of notifying the user.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/reportValidity
π§ setCustomValidity π§
Sets a custom validity message for the element. If this message is not the empty string, then the element is suffering from a custom validity error, and does not validate.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/setCustomValidity
π AUTHOR π
Jacques Deguest jack@deguest.jp
π₯ SEE ALSO π₯
- Mozilla documentation:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement - Mozilla documentation on output element:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output
π 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.
π Thatβs the whole page, bestie! Footer energy:perl v5.42.2Β·2026-02-15Β·HTML::O...:Output(3)β mwah! π
π¦ 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