WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: XHTML Content Negotiation revisited


From: Tim Beadle
Date: Aug 20, 2005 3:20AM

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" :)