Re: When does JavaScript get executed in FF-XForms?

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Liberty Development
Message-ID <[email protected]>

Adam FLinton wrote:


> However if you load this (or any other JavaScript WYSIWYG XHTML editor 
> you get:
> 
> Error: uncaught exception: [Exception... "Object cannot be created in 
> this context"  code: "9" nsresult: "0x80530009 
> (NS_ERROR_DOM_NOT_SUPPORTED_ERR)"  location: 
> "file:///D:/Data/Hl7/XML/XForm/Test/tinymce/jscripts/tiny_mce/tiny_mce_src.js 
> Line: 253"]
> 
> 
> This line is the id'ed one:
> 
>     document.write('<sc'+'ript language="javascript" 
> type="text/javascript" src="' + url + '"></script>');

document.write is not supported in XHTML and XML parsed by the XML 
parser, that is nothing new and does not depend on XForms, it is simply 
a restriction browser implementors have imposed on script in XML/XHTML.
Here is one opinion why it is not implemented:
   <http://ln.hixie.ch/?start=1091626816&count=1>

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
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.