Forum Moderators: open

Message Too Old, No Replies

XHTML 5 Doctype?

Not defined on WHATWG's site.

         

JAB Creations

7:17 pm on Jun 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does anyone know what the XHTML 5 Doctype looks like (exactly)? I'd like to add it as an option in my Doctype switcher right now mostly just for kicks. :)

- John

*Edit*

This is where it should be defined...
[whatwg.org...]

[edited by: JAB_Creations at 7:17 pm (utc) on June 17, 2007]

encyclo

7:28 pm on Jun 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From the document linked above:

Such XML documents may contain a
DOCTYPE
if desired, but this is not required to conform to this specification

There does not appear to be one specifically defined, but as the opinion of the working group is that the doctype is present only for legacy reasons, it is probably safe to say that there may never be an "XHTML 5" doctype defined as the specification requires the use of

application/xml
or similar, which in turn already triggers standards-compliance mode in all currently-supporting browsers.

You may want to cater for a custom (

SYSTEM
) doctype in your logic:

<!DOCTYPE HTML SYSTEM "http://www.example.com/dtd/my-custom.dtd">

JAB Creations

1:20 am on Jun 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



XML would then require a schema?

- John