Re: Transition to HTML5

On Fri, Apr 30, 2010 at 2:52 PM, Jasper Magick <jasper.magick@gmail.com> wrote:
>> 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.
>
> I do self-close, as I am currently serving the pages as xml, which is why I
> mentioned application/xhtml+xml
> So pretty much I'd have to go through every line of code and remove the
> self-closing?
> I would have kept it XHTML, but I hate that IE still doesn't support it.

You only have to remove it for the elements that aren't void.  You can
keep your <link/> and <br/> and such.  But <div/> doesn't do what you
want in HTML (it just opens a div, doesn't close it).

If you're already serving as xml, you can just keep it as such.  XML
is a valid format for HTML5.  You just have the IE problem.

~TJ

Received on Friday, 30 April 2010 22:11:35 UTC