4

Is there a free online polyglot-markup validation service that will correctly identify and validate polyglot-markup?

I did find totalvalidator and htmlvalidator but those are (paid) non-web-based solutions.

GitaarLAB
  • 14,536
  • 11
  • 60
  • 80
  • 4
    Both [Henri Sivonen](http://lists.w3.org/Archives/Public/public-html/2013Jan/0059.html) and [Michael Smith](http://lists.w3.org/Archives/Public/public-html/2013Jan/0066.html), the maintainers of the W3C and validator.nu validators, have expressed a disinclination to provide a polyglot validator, so the best you're going to get is Jukka's answer. – Alohci Apr 29 '13 at 16:43
  • 1
    On [softwarerecs.se]: [Validator for polyglot HTML5](http://softwarerecs.stackexchange.com/questions/17108/validator-for-polyglot-html5) – unor Feb 11 '15 at 21:54
  • @unor: thanks for pointing me to that new question, let's hope it gets some answers. – GitaarLAB Feb 11 '15 at 22:19

1 Answers1

8

Use http://validator.w3.org/nu/ and use “Options” to select first HTML5 (= HTML5 in HTML serialization) parsing mode, then XML parsing mode.

Jukka K. Korpela
  • 195,524
  • 37
  • 270
  • 390
  • Is there a difference between the Nu Validator hosted on w3.org and the Living Validator hosted on validator.nu? I imagine that the former validates according to W3C HTML5 whereas the latter validates according to the HTML Living Standard - is my assumption correct? – BoltClock Apr 29 '13 at 16:37
  • 1
    @BoltClock - not necessarily. For example `main` inside `article` is not valid in W3C HTML5, but is in HTML Living. However, currently both validators object to it. But it may be that that discrepancy is just too new right now. – Alohci Apr 29 '13 at 17:02
  • 1
    On the other hand, for `hgroup` (invalid in W3C HTML5, valid in HTML Living), the two validators do report in a way that reflects their hosting. – Alohci Apr 30 '13 at 15:53