make polyglot (both valid HTML5 and XML)

See https://gist.github.com/waldir/9260278