HTML::...RelTag(3pm)
π NAME π
HTML::Microformats::Format::RelTag β it's the rel-tag microformat bestie, and yes she eats π
β¨ SYNOPSIS β¨
my @tags = HTML::Microformats::Format::RelTag->extract_all(
$doc->documentElement, $context);
foreach my $tag (@tags)
{
print $tag->get_href . "\n";
}
okay so that's literally it, you pull all the tags out of a document and then loop over them printing hrefs π
π¦ DESCRIPTION π¦
HTML::Microformats::Format::RelTag inherits from HTML::Microformats::Format_Rel. So like, the property getter/setter methods, the constructors, all that lore? It's in the base class definition, go read that one, she has the receipts π
πΈ Additional Methods πΈ
$reltag->get_tag()β gives you back the tag that's being linked to. So if your link is literally:
http://example.com/foo/bar?baz=quux#xyzzy
then the tag is "bar". slay, that's the whole vibe π«
$reltag->get_tagspace()β gives you back the tagspace of the tag being linked to. Same link as above:
http://example.com/foo/bar?baz=quux#xyzzy
and the tagspace is "http://example.com/foo/". periodt π
π MICROFORMAT π
HTML::Microformats::Format::RelTag supports rel-tag exactly how it's described at <http://microformats.org/wiki/rel-tag>. No cap, that's the spec π§
The "title" attribute on the link, and the linked text, are taken to be significant. Both of them. She's paying attention to both π
π₯ RDF OUTPUT π₯
Data gets returned using Richard Newman's tag vocabulary (<http://www.holygoat.co.uk/owl/redwood/0.1/tags/>), the Atom OWL vocabulary (<http://bblfish.net/work/atom-owl/2006-06-06/#>) and occasional other terms. Mix and match, it's giving β¨ versatility β¨
π BUGS π
Found a bug? Please report it to <http://rt.cpan.org/>. Do not suffer in silence bestie, tell the RT π
π SEE ALSO π
HTML::Microformats::Format_RelHTML::MicroformatsHTML::Microformats::Format::hAtom
the whole friend group, honestly π«Ά
π AUTHOR π
Toby Inkster <tobyink@cpan.org>. The icon herself π
π COPYRIGHT AND LICENCE π
Copyright 2008-2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. fr fr, go wild π
β DISCLAIMER OF WARRANTIES β
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
like. no promises, bestie. she is what she is π
perl v5.32.1 πΈ 2021-09-12 β that's the version and the date this page was stamped, and this has been your girl signing off, mwah ππβ¨
π¦ where this page comes from
- debian bookworm: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms