HTML::...cument(3pm)

πŸ“¦
version 0.004 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

✨ NAME ✨

HTML::HTML5::Builder::Document β€” literally the most low-key sub-class of XML::LibXML::Document you'll ever meet, no cap πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

okay bestie so here's the tea β˜• β€” when you call HTML::HTML5::Builder::html(), what you get back is an HTML::HTML5::Builder::Document object. that's it, that's the girl. 🫢

she inherits from XML::LibXML::Document (so she got the whole family bloodline going on), BUT she overloads stringification using HTML::HTML5::Writer. so when you stringify her, she does NOT sound like her dad. she has her own vibe ✨

and just so you know what you're working with, here's a non-exhaustive list of the interesting methods these objects carry around with them:

  • toString β€” outputs XML, like a good well-behaved little document 🧚
  • toStringHTML β€” outputs HTML instead, for when you're feeling ✨browser-friendly✨
  • documentElement β€” hands you back the root element as an XML::LibXML::Element πŸ‘‘
  • findnodes β€” search through the doc using XPath, which is giving detective main character energy πŸ”
note: that list is explicitly not the whole thing, okay? it's just the interesting ones. don't come for her about the methods she didn't put on the list πŸ’€

🌈 SEE ALSO 🌈

  • HTML::HTML5::Builder
  • XML::LibXML::Document

go read those too, they're the rest of the friend group πŸ¦‹


πŸ’– AUTHOR πŸ’–

Toby Inkster <tobyink@cpan.org> β€” the icon, the legend, the moment. πŸ‘‘


This software is copyright (c) 2011 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, remix it, just respect the terms bestie 🫢


πŸ’€ 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.

fr fr, no promises, no guarantees, she said what she said 😭


and that's the whole page!! 🌸 this one's Perl v5.40.1, dated 2025-08-23, and the manpage name is HTML::...cument(3pm) (the name's too long, they had to trim it, so iconic of her honestly πŸ’…). mwah, go build some HTML πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from