HTML::O...tribute(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’… 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

both links are fr fr the sources, go read them πŸ’–

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