[Lift] Beware of using a body tag in a surrounded template, especially with nested surrounds

2009-12-01 Thread tiro
Hi, I think it is documented somewhere in the Liftbook that one should not use body tags inside a surround tag, but Lift doesn't seem to complain. I thought I would document the phenomenon I had here since people usually look in the mailing list first. I had used two nested surround templates,

Re: [Lift] Beware of using a body tag in a surrounded template, especially with nested surrounds

2009-12-01 Thread David Pollak
Putting a body tag in templates is pretty much the only way to go. If you don't put the body tag in the template that surrounds a given page's custom content, then you have significant issues related duplication in each page. It is the developer's responsibility to make sure that the HTML is

Re: [Lift] Beware of using a body tag in a surrounded template, especially with nested surrounds

2009-12-01 Thread David Pollak
On Tue, Dec 1, 2009 at 9:36 AM, Ross Mellgren dri...@gmail.com wrote: Isn't XHTML schema validation turned on by default in dev mode? It's turned off by default. Wouldn't it detect this case? It's applied after the rendering is complete. The head/tail moving stuff is done before that at