I think this is one of those edge cases we're going to have to say "sorry, yes the behaviour has changed" - which is what a major version change does allow us to do. The beta release notes did highlight this node as being one that had had a significant update under the covers.
The underlying library made significant changes to how it handles full HTML documents, versus fragments. I cannot immediately see a way to get it working is it did before without breaking another scenario.