On Wed, Nov 18, 2009 at 11:40 AM, Ross Mellgren <dri...@gmail.com> wrote:

> 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.
>

Having XHTML and using the proper mime type ensures compliant rendering
(your pages look the same) across all non-IE browsers (I've only found one
very minor exception to this rule between FF and Safari 3.)

If you are using text/html, browsers may choose different rendering/layout
rules (tag soup.)


>
> -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 <dri...@gmail.com> 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 lift...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> >>> .
> >>> 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 lift...@googlegroups.com.
> > To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> > .
> > 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 lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

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


Reply via email to