Ok, I'm taking the plunge, I've started moving from HTML 4.01 to XHTML 1.0 but am having just a few problems.
If I serve the pages as Content-Type text/html I have no problems whatsoever, I have validated pages, and everything displays great in both FireFox and IE 6... (At this point though the pages are little more than more organized HTML 4.01...)
Now, I know there's a problem with doing true XHTML on IE 6, so I set about 'sniffing' what the browser was sending to the server as far as what it could handle, and then set the Content-Type depending on whether the browser can only handle text/html (like IE 6) or true application/xhtml+xml (like FireFox).
Everything SEEMS to go well, until I realized that you cannot use document.write() in true XHTML/XML, which gives me my problem.
I understand that true XHTML/XML isn't fully supported yet (certainly not by Microsoft!) but I'm sure it is only a matter of time, and detecting the browser's abilities on the fly allows me to at least start in the right direction. BUT, if a number of things on my site use the document.write() ability right now, what do I have to do to make it work in true XHTML/XML??
Any help, and certainly any examples, would be welcomed as to how I go about setting up my pages so that I can deliver in both text/html (for IE) and application/xhtml+xml (for FF) depending on what is being used...
Help???
Ty
If I serve the pages as Content-Type text/html I have no problems whatsoever, I have validated pages, and everything displays great in both FireFox and IE 6... (At this point though the pages are little more than more organized HTML 4.01...)
Now, I know there's a problem with doing true XHTML on IE 6, so I set about 'sniffing' what the browser was sending to the server as far as what it could handle, and then set the Content-Type depending on whether the browser can only handle text/html (like IE 6) or true application/xhtml+xml (like FireFox).
Everything SEEMS to go well, until I realized that you cannot use document.write() in true XHTML/XML, which gives me my problem.
I understand that true XHTML/XML isn't fully supported yet (certainly not by Microsoft!) but I'm sure it is only a matter of time, and detecting the browser's abilities on the fly allows me to at least start in the right direction. BUT, if a number of things on my site use the document.write() ability right now, what do I have to do to make it work in true XHTML/XML??
Any help, and certainly any examples, would be welcomed as to how I go about setting up my pages so that I can deliver in both text/html (for IE) and application/xhtml+xml (for FF) depending on what is being used...
Help???
Ty