Enable Conditional Comments in Lift (Production run mode)
IE's conditional comments are simultaneously the warts of a fragmented web and a refuge for weary web developers. If you want to deliver a hack-free, consistent(ish) and cross-platform experience to your user's you most likely find yourself using them. When running in the Production run mode, Lift removes all (x)html comments (in all modes except Development, in fact). This poses a hurdle if you are in the aforementioned category of developers (and you should be).
Like most things in lift, this behavior is easily modifiable, but finding out where and how may not be so obvious. Here's how to enable comments in the Production run mode via Boot:
package bootstrap.liftweb
class Boot {
def boot {
// I want conditional comments.
LiftRules.stripComments.default.set(() => false)
}
}Much of Lift's behavior is dictated via LiftRules, so when in doubt, check there.

