HTML::O...t::Title(3)
π NAME π
okay so welcome to HTML::O...t::Title(3) π
β this is the User Contributed Perl Documentation page for HTML::Object::DOM::Element::Title, aka the HTML Object DOM Title Class. slay.
β¨ SYNOPSIS β¨
bestie, hereβs the whole vibe in code:
use HTML::Object::DOM::Element::Title;
my $title = HTML::Object::DOM::Element::Title->new ||
die( HTML::Object::DOM::Element::Title->error, "\n" );
π VERSION π
v0.3.0 π
π¦ DESCRIPTION π¦
This interface contains the title for a document. fr fr. This element inherits all of the properties and methods of the HTML::Object::DOM::Element interface. iconic behavior honestly π
π§ INHERITANCE π§
the whole family tree is giving main character energy:
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-----------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Title |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-----------------------------------+
π PROPERTIES π
Inherits properties from its parent HTML::Object::DOM::Element π
πΈ text πΈ
text is a string representing the text of the documentβs title, and only the text part. no cap. For example, consider this:
<!doctype html>
<html>
<head>
<title>Hello world! <span class="highlight">Isn't this wonderful</span> really?</title>
</head>
<body></body>
</html>
my $title = $doc->getElementsByTagName( 'title' )->[0];
say $title->text;
# Hello world! really?
As you can see, the span tag and its content got skipped π
Also, do not confuse:
$doc->title;
with:
$doc->getElementsByTagName( 'title' )->[0];
The former is just a setter/getter method to set or get the inner text value of the document title, while the latter is the HTML::Object::DOM::Element::Title object. So you cannot write:
$doc->title->text = "Hello world!";
Thereβs also Mozilla documentation for this: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text π¦
π METHODS π
Inherits methods from its parent HTML::Object::DOM::Element β periodt π
π AUTHOR π
Jacques Deguest <jack@deguest.jp> π
β SEE ALSO β
- Mozilla documentation:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElementπ - Mozilla documentation on title element:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/titleπΈ
π 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.
okay cute sign-off time π«Ά this page is from perl v5.42.2, dated 2026-02-15, and itβs the HTML::O...t::Title(3) manual page. bye 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