WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: XHTML Content Negotiation revisited


From: James Pickering
Date: Aug 21, 2005 11:20PM

I am sure you are familiar with the W3C XHTML 1.0 Specification Appendix
C.11. "Document Object Model and XHTML"

I am indeed well familiar with your cited references. I personally employ
HTML 4.01 (strict) Markup for my Web pages.

James Pickering
Accessible to People with Disabilities
RSS feed via RDF/XML

----- Original Message -----
From: "Tim Beadle" < <EMAIL REMOVED> >
To: "WebAIM Discussion List" < <EMAIL REMOVED> >
Sent: Saturday, August 20, 2005 2:08 AM
Subject: Re: [WebAIM] XHTML Content Negotiation revisited

On 8/20/05, James Pickering < <EMAIL REMOVED> > wrote:
> Tim Beadle wrote:
> "All good stuff, but as I mentioned before: are you going to fork your
> DOM Scripts for the two styles of rendering (text/html vs
> application/xhtml+xml) ?"
> No, the markup is preset and validated -- the XML is checked for
> well-formedness. The PHP scripting is a pre-processor to generate headers
> via negotiation.

Sorry, I probably didn't make myself clear. If you write client-side
DOM Scripts (the new name for DHTML, basically), you will need to use
different DOM methods (document.createElement vs
document.createElementNS) depending on whether your XHTML is served as
text/html or application/xhtml+xml.

I would go and read these articles, before thinking "maybe HTML 4.01
isn't so bad after all" :)