Validator Face-Off
Can someone please point me to an online Validation Service that deals correctly with the following following three documents? They are not, by any stretch of the imagination, torture tests. They’re about as simple a trio of examples as I could cook up.
But I’ve yet to find an online Validator that handles all three correctly (so far, I’ve only found one that handles two of the three correctly).
XHTML + MathML + Ruby | XHTML + MathML + SVG | Invalid XHTML | |
---|---|---|---|
W3C Validator | ✔ | ✘ | ✘ |
Validome | ✘ | ✔ | ✘ |
WDG Validator | ✘ | ✘ | ✘ |
Henri Sivonen’s Validator | ✘ | ✘ | ✔ |
Page Valet | ✔ | ✘ | ✔ |
Re: Validator Face-Off
Jacques,
Have you sent these test cases to any of the developer of the validators you mention? Three of them are open source, and it would be constructive to report bugs and send test cases, more so than sadly reporting it on a blog which, probably, neither of them reads.
That said: 1. your first test case is correct 2. I don’t think your second test case is correct. I trust the validators here. At least, you’re using namespaces in a way that is not compatible with XML DTD-based validation, and since the “XHTML + MathML + SVG Profile” is precisely that, a DTD, your document is wrong. 3. your “Invalid XHTML” document is a very pathological case of a limitation of OpenSP, which is still the very best parser for HTML, the most useful and usable and reliable… except for some XML constructs. The next version of the W3C Markup Validator in development , which will go into Beta test in a few weeks, features an additional XML-WF check… based, actually, on an idea found on your blog. You can test the invalid XHTML test case on that dev version of the validator and see that it properly reports it as invalid.
Would you give us your permission to use (and distribute under w3c license) the three documents in our test suite? (Just saying “yes” here should do).
Thank you.
olivier @ W3C / qa-dev