HTML5 support

23 views
Skip to first unread message

E. Biggs

unread,
Dec 5, 2011, 12:12:00 PM12/5/11
to Lift
So, I'm wanting to start using the html5 parser, and from what I can
tell it's either all or nothing? There's no way to designate in boot
which pages get parsed with the html5 parser or not? It's either all
or nothing?

Assuming that was the case I went to make my old templates html5
friendly and am experiencing strange behavior following the wiki's
html5 advice of this:

<table>
<tr lift:bind="mysnippet:line">
<td>
<mysnippet:bind_here></mysnippet:bind_here>
</td>
</tr>
</table>

It ends up almost working as expected except that my tr tags are:
<http://www.w3.org/1999/xhtml:tr>

to which my browser has no clue what to do with them.

I don't quite get that syntax, either? is lift:bind a snippet yet
designated as an attribute in the tr tag?

Tim Nelson

unread,
Dec 5, 2011, 12:25:16 PM12/5/11
to lif...@googlegroups.com
Hi E,

It is possible to tell Lift which pages to use HTML5 and which ones not to. When I was moving to HTML5, I used the following code:

Reply all
Reply to author
Forward
0 new messages