NAME
HTML::Object::DOM::Element::Meter - HTML Object DOM Meter Class
SYNOPSIS
use HTML::Object::DOM::Element::Meter;
my $meter = HTML::Object::DOM::Element::Meter->new ||
die( HTML::Object::DOM::Element::Meter->error, "\n" );
VERSION
v0.2.0
DESCRIPTION
The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTML::Object::DOM::Element object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements.
INHERITANCE
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-----------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Meter |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-----------------------------------+
PROPERTIES
Inherits properties from its parent HTML::Object::DOM::Element
high
A double representing the value of the high boundary, reflecting the high attribute.
See also Mozilla documentation
labels
Read-only.
A NodeList
of <label> elements that are associated with the element.
Example:
my $labelElements = meter->labels;
<label id="label1" for="test">Label 1</label>
<meter id="test" min="0" max="100" value="70">70</meter>
<label id="label2" for="test">Label 2</label>
Another example:
window->addEventListener( DOMContentLoaded => sub
{
my $meter = $doc->getElementById( 'test' );
for( my $i = 0; $i < $meter->labels->length; $i++ )
{
say( $meter->labels->[$i]->textContent ); # "Label 1" and "Label 2"
}
});
See also Mozilla documentation
low
A double representing the value of the low boundary, reflecting the lowattribute.
See also Mozilla documentation
max
A double representing the maximum value, reflecting the max attribute.
See also Mozilla documentation
min
A double representing the minimum value, reflecting the min attribute.
See also Mozilla documentation
optimum
A double representing the optimum, reflecting the optimum attribute.
See also Mozilla documentation
value
A double representing the currrent value, reflecting the value attribute.
See also Mozilla documentation
METHODS
Inherits methods from its parent HTML::Object::DOM::Element
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
Mozilla documentation, Mozilla documentation on meter element
COPYRIGHT & LICENSE
Copyright(c) 2022 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.