[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] XHTML 5 and validation
- From: Jirka Kosek <jirka@kosek.cz>
- To: Jesper Tverskov <jesper.tverskov@gmail.com>
- Date: Wed, 18 May 2011 18:31:20 +0200
On 18.5.2011 16:19, Jesper Tverskov wrote:
> You cannot validate XHTML5 without "application/xhtml+xml" or similar.
XHTML5 content served with text/html MIME type shouldn't be validated by
XML parser, because browsers will use HTML parser for it. But
validator.nu allows you to override this. Have you tried to use "Preset"
and "Parser" options.
> And you have no way of validating an HTML5 document if you would like
> it to be well-formed and to use lower-case for element and attribute
> names.
There is no notation of well-formed HTML5 document. You can have valid
HTML5 document, valid XHTML5 document or well-formed XML which at the
same time might be valid XHTML5 (and if you follow polyglot markup
recommendations it can be valid HTML5 at the same time).
> My conclusion is that it is almost impossible to use XHTML5 for the
> above practical reasons. I am going to use it, I will find a way, but
> it is not realistic that XHTML5 will get any traction with such
> huddles.
If you want to serve XHTML5 content with "text/html" MIME there is
guideline for this:
http://www.w3.org/TR/html-polyglot/
But there is still one question -- why to serve XML with bad content type.
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------
OpenPGP digital signature
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]