W3C home > Mailing lists > Public > public-html@w3.org > April 2010

Re: Transition to HTML5

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 30 Apr 2010 12:40:14 -0700
Message-ID: <v2qdd0fbad1004301240gb5eaf970q6e057ff4b2ec7bc9@mail.gmail.com>
To: Jasper Magick <jasper.magick@gmail.com>
Cc: public-html@w3.org
On Fri, Apr 30, 2010 at 10:34 AM, Jasper Magick <jasper.magick@gmail.com> wrote:
> What is the most pain-free way of transitioning from XHTML1.0 Strict to
> HTML5?
> Some of what I read about HTML5 seems sloppy, like optional quotations
> around values.
> However, it seems like the better way to go since there are still some
> (though few) browsers that still don't support XHTML (application/xhtml+xml)

The easiest way?  Just swap your doctype to <!DOCTYPE html> and keep
serving your page as text/html.  You've now transitioned to HTML5.
^_^  (Well, as long as you're not using some of the more xml-ish
features like self-closing your <script src>s , but since you're
probably serving your page as text/html right now, I doubt you're
doing so.)

You don't have to use the features like optional quotes.  Those exist
partially because legacy browsers supported them, and thus legacy
pages use them, and so we have to support them in some way to fulfill
our goal of being compatible, and partially just because, well, it's
unambiguous in many cases to omit the quotes, so why require them?
You can always use quotes at all times if you wish, of course; it
won't make your HTML invalid.

~TJ
Received on Friday, 30 April 2010 19:41:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:08 GMT