[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XHTML 5 and validation
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 ------------------------------------------------------------------
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|