[Lift] Re: How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?
I set the XhtmlMimeType to false, and it can works now! ### LiftRules.useXhtmlMimeType = false ### Thanks very much! Cheers, Neil On Dec 2, 9:03 pm, Arthur wrote: > Hi Neil > > document.write() isn't allowed for "real" xml files like xhtml+xml > where an xml parser checks for well-formedness of the xml. You should > be able to use things like appendChild(). > > Regards > > Arthur > > On 2 Dez., 13:42, "Neil.Lv" wrote: > > > Hi all, > > > How to fix the bug in firefox that application/xhtml+xml doesn't > > have the write() method ? > > > The document object created in Firefox when the mime type is > > application/xhtml+xml does not have the write() method. > > > I have a script that need to use the document.write method in the > > lift page. > > > ### > >
[Lift] Re: How to fix the bug in firefox that application/xhtml+xml doesn't have the write() method ?
Hi Neil document.write() isn't allowed for "real" xml files like xhtml+xml where an xml parser checks for well-formedness of the xml. You should be able to use things like appendChild(). Regards Arthur On 2 Dez., 13:42, "Neil.Lv" wrote: > Hi all, > > How to fix the bug in firefox that application/xhtml+xml doesn't > have the write() method ? > > The document object created in Firefox when the mime type is > application/xhtml+xml does not have the write() method. > > I have a script that need to use the document.write method in the > lift page. > > ### >