[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XHTML 5 and validation

  • From: Jesper Tverskov <jesper.tverskov@gmail.com>
  • To: xml-dev@lists.xml.org
  • Date: Wed, 18 May 2011 11:07:03 +0200

XHTML 5 and validation
XHTML 5 and validation

Since around 2005 I have served my webpages as XHTML 1.1 with mimetype
"application/xhtml+xml" to the browsers understanding it and as XHTML
1.0 with mimetype "text/html" to the rest. The last couple of days I
have tested if something similar is possible with XHTML 5.

"HTML5" is supposed to come in an HTML and an XHTML version. I have a
feeling that at least the XML community would like to use the XHTML
version, either XHTML 5 served with mimetype "application/xhtml+xml"
to the browsers understanding it, or as a minimum well-formed HTML5
looking like XHTML served with "text/html".

The problem is that we are allowed to use well-formed HTML5, and we
are allowed to use lower-case for element and attribute names, but we
cannot validate it with e.g. W3C's HTML Validator. In HTML5 an "img"
element is allowed to be spelled "img", "IMG", "iMg", ImG", etc., in
one and the same document.

Even worse, XHTML5 has exactly the same DOCTYPE as HTML5. To get the
document validated as XHTML5 you must serve it to the validator with
"application/xhtml+xml". To do that you cannot just upload it but you
must serve it with a webserver and fine tune it to use an XML
mimetype, or you must set the mimetype with server-side scripting just
to get a document validated!

Excuse me, but what I have just described, is enough to conclude that
it is very unlikely that XHTML5 will get any traction what so ever. It
is too difficult to use. Unless the XML community does something to
make it easier to validate XHTML5 and make it possible to validate
well-formed, "XHTML style", HTML5.

Cheers,
Jesper Tverskov
http://www.xmlplease.com


[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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.