Hi,
The html5 serialization adds a doctype  <!DOCTYPE html> but unlike method "html" it outputs empty tags for script.
Looks wrong to me. example below

Also I cant get the REST eval to work. This url , for example,
http://localhost:8984/rest/listman/add.xq always downloads rather than executes, even though http://localhost:8984/rest/listman
gives..
<rest:database name="listman" resources="1"><rest:resource type="raw" content-type="application/xquery" size="22">add.xq</rest:resource></rest:database>

/Andy

(: test html serialization :)
declare option output:method "html5";
<html>
<head>
<script src="jquery-1.7.1.min.js" type="text/javascript"/>
</head>
</html>