Permalink
Browse files

Fixed some documentation

  • Loading branch information...
1 parent 1d74b84 commit e04ee61cda292cec1a51380633248d5e993731a4 @dpp dpp committed Nov 28, 2011
View
4 web/webkit/src/main/scala/net/liftweb/http/HtmlProperties.scala
@@ -264,6 +264,10 @@ trait HtmlProperties {
* This set of properties is based on Lift's current XHTML support
*/
final case class OldHtmlProperties(userAgent: Box[String]) extends HtmlProperties {
+ /**
+ * If you want to change the DocType header, override this method rather than using
+ * setDocType.
+ */
def docType: Box[String] = LiftRules.docType.vend.apply(S.request openOr Req.nil)
def encoding: Box[String] =
Full(LiftRules.calculateXmlHeader(null, <ignore/>, contentType))
View
3 web/webkit/src/main/scala/net/liftweb/http/LiftSession.scala
@@ -2212,7 +2212,8 @@ private object SnippetNode {
((for {
cls <- in.attribute("class")
snip <- cls.text.charSplit(' ').find(isLiftClass)
- } yield snip) orElse in.attribute("lift").map(_.text)).map {
+ } yield snip) orElse in.attribute("lift").map(_.text)
+ orElse in.attribute("data-lift").map(_.text)).map {
snip =>
snip.charSplit('?') match {
case Nil => "this should never happen" -> Null

0 comments on commit e04ee61

Please sign in to comment.