It's less rigorous. The reason you have to turn it off it is makes  
some javascript fail to work. Lift itself and all it generates (to my  
knowledge) out of the box works with it on, but some third party  
libraries don't like it on, as it disables document.write.

I don't think offhand there's any particular problem with having it  
off other than it's not as nice.

-Ross

On Nov 18, 2009, at 2:36 PM, glenn wrote:

> Ross,
>
> Yep, that fixes it. Thanks, although I'm not sure if the
> solution is worse than the problem. I mean, what possible
> side affects could turning off the use of Xhtml mime type have?
>
> Glenn
>
> On Nov 18, 11:23 am, Ross Mellgren <[email protected]> wrote:
>> Try turning off the XHTML mime type by putting
>>
>> LiftRules.useXhtmlMimeType = false
>>
>> into your Boot and see if it goes away?
>>
>> -Ross
>>
>> On Nov 18, 2009, at 2:21 PM, glenn wrote:
>>
>>> I'm returning  Full(CreatedResponse(form, "text/xhtml" )) in
>>> LiftRules.DispatchPF, where form is just a MetaMapper.toForm node,
>>> which works fine in IE but fails in Firefox with the following  
>>> error.
>>
>>> XML or text declaration not at start of entity
>>> [Break on this error] <div xmlns="http://www.w3.org/1999/xhtml";><? 
>>> xml
>>> version="1.0" encoding="UTF-8"?> (line 1)
>>> uncaught exception: [Exception... "Component returned failure code:
>>> 0x80004003 (NS_ERROR_INVALID_POINTER)  
>>> [nsIDOMNSHTMLElement.innerHTML]"
>>> nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS
>>> frame ::http://localhost:8080/classpath/jquery.js:: anonymous ::
>>> line 251" data: no]
>>
>>> Anyone have an idea why this happening?
>>
>>> Glenn
>>
>>> --
>>
>>> You received this message because you are subscribed to the Google
>>> Groups "Lift" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected]
>>> .
>>> For more options, visit this group 
>>> athttp://groups.google.com/group/liftweb?hl=en
>>> .
>
> --
>
> You received this message because you are subscribed to the Google  
> Groups "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected] 
> .
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en 
> .
>
>

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.



Reply via email to