HTML::O...tribute(3)
π NAME
okay so bestie, this is HTML::Object::DOM::Attribute β the HTML Object module that handles DOM node attributes β¨ It's giving "one little attribute living its best life."
π SYNOPSIS
use HTML::Object::DOM::Attribute;
my $this = HTML::Object::DOM::Attribute->new || die( HTML::Object::DOM::Attribute->error, "\n" );
β VERSION
v0.2.0 β yes, that's the version, no cap π«Ά
πΈ DESCRIPTION
This module implements a DOM node attribute. Lowkey its whole personality is that it inherits from HTML::Object::Attribute and from HTML::Object::DOM::Node. Two parents, one icon π
π¦ INHERITANCE
here's the family tree, and honestly it's giving royalty π
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Closing |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+
| ^
| |
v |
+-----------------------+ |
| HTML::Object::Closing | ------------------------------------------------------------------------+
+-----------------------+
π PROPERTIES
nodeValue
Returns the attribute value as a scalar object. that's it, that's the whole vibe β¨
π₯ METHODS
getAttributes
If this attribute has no associated element, this returns an empty list in list context or an empty array reference in scalar context. (sad girl hours, no element π)
Otherwise, this returns an array object of attribute objects for the associated element. slay.
getChildNodes
Returns an empty list in list context, or an empty array reference in scalar context. ngl, attributes got no children β it's giving only child energy π
getElementById
Returns an empty list in list context, or undef in scalar context.
getFirstChild
Returns an empty list in list context, or undef in scalar context.
getLastChild
Returns an empty list in list context, or undef in scalar context.
getLocalName
Returns the attribute name. π
getName
Returns the attribute name. (yes, same energy as above, they're twins fr fr)
getNextSibling
Returns the next attribute object for the associated element, or undef if there are no associated element, or if this attribute is the last one of the associated element.
getParentNode
Returns the associated element, if any. π«Ά
getPreviousSibling
Returns the previous attribute object for the associated element, or undef if there are no associated element, or if this attribute is the first one of the associated element.
getRootNode
Returns the root node by calling getRootNode on this attribute parent. go all the way up, bestie π
getValue
Returns the attribute value. iconic.
isAttributeNode
Returns true. β (obviously, it IS an attribute node, that's the whole point)
isCommentNode
Returns false.
isElementNode
Returns false.
isEqualNode
Provided with another attribute object, and this returns true if both attribute object have the same value, or false otherwise. twin check π
isNamespaceNode
Returns false.
isPINode
Returns false.
isProcessingInstructionNode
Returns false.
isTextNode
Returns false.
is_inside
Provided with a node and this returns true if this attribute associated element is the same, or if the associated element is inside the provided element. nested vibes check πΈ
lineage
Returns the value provided by calling lineage on the associated element and adding it to the lineage, or an empty array object if there is no associated element.
localName
This is just an alias for getName. periodt π
namespaceURI
Always returns undef. no namespace, no drama β¨
nodeName
Returns the qualified name of the attribute. This actually calls name in HTML::Object::Attribute β so it's lowkey delegating, and that's fine, we love a team player.
ownerElement
This returns the attribute associated element, if any. π
parent
This returns the attribute associated element, if any.
prefix
Always returns undef. (no prefix era π)
string_value
Returns the attribute value.
to_boolean
Returns a true boolean object if the attribute value is true, or a false boolean object otherwise.
to_literal
Returns the attribute value.
to_number
Returns a new HTML::Object::Number object based on the attribute value. math era π₯
toString
Returns a string, such as: "name="value""
π§ AUTHOR
Jacques Deguest <jack@deguest.jp>
π SEE ALSO
- Mozilla reference <https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes>
- W3C standard on attributes <https://html.spec.whatwg.org/multipage/syntax.html#attributes-2>
both links are fr fr the sources, go read them π
π 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.
and that's the whole page, bestie!! π this gem of a page is perl v5.42.2, dated 2026-02-15, and it belongs to HTML::O...tribute(3) β see you in the next manpage, 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