Is there a validator specifically for XHTML 5, i.e. the XML serialization of HTML 5? The W3C validator supports the document types:
HTML 5 (experimental):which treats as valid various features that are not allowed in XML, such as implicitly closed<br>tags.- several
XHTML 1.0andXHTML 1.1doctypes, which don’t recognize the new tags in HTML 5.
The W3C validator for HTML 5 in fact does detect and validate XHTML 5:
application/xhtml+xml).xmlnsattribute is present in the file. That is,This is identified as XHTML (and is therefore correctly marked invalid):
This is identified as HTML (and is therefore correctly marked valid):
Edit: Apparently they’re removing this auto-identification. See this bug.