Re: (Java)Script in combination with MathML not executed by Firefox 3.0.11
William F Hammond <[email protected]> Mon, 29 Jun 2009 15:00:19 -0400
| Newsgroups | gmane.comp.mozilla.devel.mathml |
|---|---|
| Message-ID | <[email protected]> |
Previously:
> document.write("<b>UTC time:</b> "
I don't have first-hand knowledge, but I've been told that
document.write() is not allowed in xhtml. The question came
up for me in a less-than-fully-serious effort to port a js bit
from html to xhtml.
Well, in fact, looking around for "document.write + xhtml"
I find Steve Pemberton's FAQ from 2004:
http://www.w3.org/MarkUp/2004/xhtml-faq
---
Does document.write work in XHTML?
No. Because of the way XML is defined, it is not possible to do
tricks like this, where markup is generated by scripting while the
parser is still parsing the markup.
You can still achieve the same effects, but you have to do it by
using the DOM to add and delete elements.
---
-- Bill