DOM v3
PHP.Gt/Dom is now upgraded to v3, which brings a lot of improvements to the compatibility with W3C spec. The good news is that the existing functionality isn't changed at all, so the one single change that was needed to make Csrf compatible with this new version was to drop the saveHTML()
function call of the Document
object and replace it with a string cast.
Have fun!