jkingwebMy 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
jkingwebAbsolutely. 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.