Fix #863

See #863.
That needs a bit more time, first need to get regressions out of the way and parse5 integrated properly.