Test::...oXPath(3pm)
π Test::HTML::Content::NoXPath β the fallback bestie π
okay so you're reading the manpage for Test::HTML::Content::NoXPath (the header up top calls it Test::...oXPath(3pm) because manpage headers are messy like that, it's fine), and it lives in the User Contributed Perl Documentation section. it's a whole lil module. let's get into it π¦
β¨ NAME β¨
Test::HTML::Content::NoXPath β it's the HTML::TokeParser fallback for Test::HTML::Content. that's the whole vibe. it's the understudy. the backup dancer. the one who steps in when the stars don't show π
πΈ SYNOPSIS πΈ
# This module is implicitly loaded by Test::HTML::Content
# if XML::XPath or HTML::Tidy::Simple are unavailable.
translation: you literally do not load this yourself, bestie. it just appears. like a fairy π§ it pops in when Test::HTML::Content is looking around and can't find its faves.
π DESCRIPTION π
so here's the tea: this is the module that gets loaded when Test::HTML::Content can't find its prerequisites. and the prerequisites it's missing are these two:
XML::XPath
HTML::Tidy
that's it. that's the whole situation. no XPath, no Tidy, and this module is like "not me stepping in to save the day π" β¨
π EXPORT π
Nothing. nope. zero. it does not export a single thing.
instead it stomps over the Test::HTML::Content namespace. π yeah, you heard me. it just moves in, redecorates, puts up its posters. bold. iconic. slightly terrifying. but that's the design, no cap.
π LICENSE π
this code may be distributed under the same terms as Perl itself. so go forth, distribute responsibly π«Ά
π AUTHOR π
Max Maischein, corion@cpan.org β the legend who wrote this. give them their flowers π
π₯ SEE ALSO π₯
go read these too, they're all connected, iykyk:
Test::BuilderTest::SimpleHTML::TokeParserTest::HTML::LintXML::XPath
β lowkey reminder: this whole page is from perl v5.40.0, dated 2024-08-17. so if you're reading this in the future, hi, hope the fallback module still slays π
and that's the page, bestie! go write some tests, drink some water, and remember: even the fallback module has main character energy πΈπ β¨
π¦ where this page comes from
- ubuntu resolute: libtest-html-content-perl 0.13-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-html-content-perl 0.13-1 Β· 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