Work better when libxml-parse-html-region not available