XHTML/CSS Redesign of mozilla.org Home Page
Thursday October 2nd, 2003
MozPhile writes: "In an effort to publicize a new CSS design for mozilla.org, a new mozdev project has been created. Based on the current design, this new one features valid XHTML 1.1 and CSS 2, with semantic HTML. First a fully standards-compliant browser, now a fully standards-compliant website to top it off!" Note that mozilla.org has not made any official statement regarding the design or whether they plan to use it.
#8 XHTML 1.1 is not "text/html"
Thursday October 2nd, 2003 8:23 AM
You are replying to this message
We're not supposed to serve XHTML 1.1 as "text/html", beause it isn't. It's XML, and the correct media types are "application/xhtml+xml" or "text/xml".
XHTML 1.1 can be used today, but then it's necessary to look at the Accept header of the calling browser, and serve out XHTML 1.1 as "application/xhtml+xml" to those that say they can handle it, and XHTML 1.0 as "text/html" to the rest. That means a lot of server side converting (it's not enough to just change the doctype declaration). Otherwise XHTML 1.0 (done according to the HTML compatibility guidelines) to all, or even HTML 4.01 to all, is the correct way to go.