fix polyglot mode (html5+xml, aka xhtml5)