Re: document.write error in Javascript executed on HTML output by XSLT

[email protected] (Steven Bethard)
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization http://groups.google.com
Message-ID <[email protected]>
Emmanouil Batsis wrote in message news:<[email protected]>...
> I havent found any use for document.write since the day i first wrote 
> javascript in 98. It's considered harmfull, besides you are working with 
> XML so why not use the DOM?

Could you point me to a good tutorial?  I'm familiar with DOM in Java
and Python, but I write so little Javascript I don't have any idea how
it handles it...  (And unfortunately I guess, most Javascript
tutorials I've seen use document.write all over the place.)

> You can make sure (X)HTML tags are output correctly (i.e. non empty) 
> either by using the HTML output method in your stylesheet, or by placing 
> a <xsl:text> </xsl:text>  in those tags.

Ahh, thanks.  That means that even with the bad document.write in the
Javascript, Firefox still renders the rest of the webpage.

Steve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.