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_Rel
  • HTML::Microformats
  • HTML::Microformats::Format::hAtom

the whole friend group, honestly 🫢


πŸŽ€ AUTHOR πŸŽ€

Toby Inkster <tobyink@cpan.org>. The icon herself πŸ‘‘


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