#microformats 2026-10-04

2026-10-04 UTC
HobbyBuilder joined the channel
#
GWG
https://github.com/microformats/php-mf2/issues/285 Just became aware this was a possibility
#
Loqi
[preview] [dshanske] #285 Support DOM\HTMLDocument
#
[tantek]
incredible
#
GWG
I was updating some things and found it
ZodiacalComet joined the channel
#
jkingweb
My own parser supports both HTMLDocument and DOMDocument. The only complexities are that XPath queries might or might not need namespace prefixes depending upon the input (one has to check the namespace of the document element, not rely on the class), and that the new DOM is closer to spec (getAttribute() returns null if the attribute does not exist, for example). Takes a bit of work, but nothing major.
vriska, [manton], ripple34, thatoddshade and [Tabitha] joined the channel
#
GWG
It just makes sense to support both
#
jkingweb
Absolutely. The new parser is both fast and accurate, so using it is an obvious advantage, but it's still quite new (PHP 8.2 and 8.3 are still supported, never mind the long legacy tail), so doing both is the best option.
barnaby and [KevinMarks] joined the channel