Re: (Java)Script in combination with MathML not executed by Firefox 3.0.11
David Carlisle <[email protected]> Mon, 29 Jun 2009 18:19:10 +0100
| Newsgroups | gmane.comp.mozilla.devel.mathml |
|---|---|
| Message-ID | <[email protected]> |
In HTML script has special parsing rules "CDATA element" so that < is
not treated as starting an element with the content of <script>.
so in an html script element
document.write("<b>UTC time:</b> "
is a sequence of chracters.
However CDATA elements do not exist in XML and so in XHTML you need to
write this as
document.write("<b>UTC time:</b> "
or include the whole script element content in a CDATA section
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________