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

Re: IE9 and application/xhtml+xml

  • From: Jesper Tverskov <jesper.tverskov@gmail.com>
  • To: xml-dev@lists.xml.org
  • Date: Sat, 20 Aug 2011 01:47:08 +0200

Re:  IE9 and application/xhtml+xml
Rand McRanderson wrote:
> However, there are cases where correct serving to browsers is important in
> the practical sense. That is if you are using namespaces or if you don't
> want to follow html endtag rules. My understanding (correct me if I am
> wrong) is that xhtml that doesn't match html5 standards (ie, no namespace
> usage, only certain tags self-closing) must have the proper mimetype.

"HTML5" is a brand name for both HTML5 and XHTML5. If you want to use
XHTML5 you must use mimetype "application/xhtml+xml" to get XML
parsing instead of HTML parsing. That is so to speak the definition of
"XHTML5".

A nice thing about HTML5 using a HTML parser is that you can use
well-formed markup as a valid subset. If you also use lower-case for
element and attribute names and declare the XHTML namespace explicitly
(HTML5 uses that namespace implicitly or explicitly), you end up with
markup that is "XHTML" as a valid subset of HTML5.

It is true that you must only use single tag elements like <meta/> and
<input/>, <img/> and <br/> when this almost XHTML is used as a subset
of HTML5 with the "text/html" mimetype. You must not use e.g. <p/>
instead of <p></p>.

That is, XHTML is at least three different things:

1. Old XHTML 1.0/1.1 specs, etc.
2. XHTML5 as a sibling to HTML5.
3 "XHTML" as a subset of valid 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.