NAME

HTML::Object::Text - HTML Object

SYNOPSIS

use HTML::Object::Text;
my $txt = HTML::Object::Text->new || 
    die( HTML::Object::Text->error );

VERSION

v0.2.0

DESCRIPTION

This module represents a text. It inherits from HTML::Object::Element

INHERITANCE

+-----------------------+     +--------------------+
| HTML::Object::Element | --> | HTML::Object::Text |
+-----------------------+     +--------------------+

PROPERTIES

nodeValue

This returns or sets the value of the current node.

For document, element or collection, this returns undef and for attribute, text or comment, this returns the objct value.

See for more information

METHODS

as_string

Returns the original value or the value assigned with "value"

as_xml

This is an alias for "as_string"

lineage

Returns an array object of all the text element's ancestors.

set_checksum

Read-only method.

This returns the md5 checksum for the current value.

value

Returns the current value as a scalar object

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

https://html.spec.whatwg.org/multipage/syntax.html#the-doctype

https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode

HTML::Object, HTML::Object::Attribute, HTML::Object::Boolean, HTML::Object::Closing, HTML::Object::Collection, HTML::Object::Comment, HTML::Object::Declaration, HTML::Object::Document, HTML::Object::Element, HTML::Object::Exception, HTML::Object::Literal, HTML::Object::Number, HTML::Object::Root, HTML::Object::Space, HTML::Object::Text, HTML::Object::XQuery

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.