Problem embedding javascript for loops in liftweb static content

Here's what I tried... I put this in a file called /src/main/webapp/static/simpleForLoop.html

<lift:surround with="default" at="content">

Why is this a problem in liftweb?

<script type="text/javascript">
  var i=0;
  for (i=0;i<=5;i++) {
    document.write("The number is " + i);
    document.write("<br />");
  }
</script>

</lift:surround>

The error I get starts with:

scala.xml.dtd.ValidationException: :5:14: name expectednet.liftweb.util.PCDataXmlParser.reportSyntaxError(PCDataMarkupParser.scala:174)
1
задан Marc W 4 September 2010 в 19:01
поделиться