No, no, that's not what I mean. document.write() does not work when the document it is attached to is sent as an "application/xhtml+xml" as opposed to "text/html". document.write() works as expected in HTML, all known browsers, but is undefined in XHTML.
If you are referring to the post below, it has to do with conditional Content-Type headers. Internet Explorer 8 and below can't handle XHTML
at all, so I incorrectly send my content as HTML, not XHTML, only to those browsers. This causes Internet Explorer 8 and below to incorrectly render the page in a language where document.write() actually exists, so my ads get rendered. However, in any decent browser, as well as in Internet Explorer 9, the page is rendered correctly in XHTML, where document.write() is undefined.
| Even if I drop Internet Explorer support (Which I would seriously love to do. It would be easy, too. All I'd have to do is remove the conditional header.), that doesn't help me with the ads. Currently, all ad solutions I know about OLNY WORK IN INTERNET EXPLORER 8 AND BELLOW, due to use of document.write(). I'm looking for a solution that works in non-Internet Explorer browsers. |
Edited by application/xhtml+xml on 5/26/12 at 3:35:01 am