PHP Classes

XHTML and document.write

Recommend this page to a friend!

      Thesaurus tooltip  >  All threads  >  XHTML and document.write  >  (Un) Subscribe thread alerts  
Subject:XHTML and document.write
Summary:Problems with XHTML and document.write in thesaurus.js
Messages:1
Author:aiko timmer
Date:2007-11-22 09:58:50
 

  1. XHTML and document.write   Reply   Report abuse  
Picture of aiko timmer aiko timmer - 2007-11-22 09:58:51
Hi again,

Firefox is having an issue regarding the document.write line in the thesaurus.js file if the header "application/xhtml+xml" is sent.
Now I know document.write should not be used in combination with xml but I wonder if there's any way to make a change in the script to prevent this. I know to little about javascript to find the solution myself.

At this moment I'm cheating a bit on Firefox by sending the "txt/html" header to the pages using the thesaurus script but I would rather do it the correct way.

W3C validator doesn't seem to have any problems validating the page even if document.write is present though :-)

Thanks,
Aiko