rem: submitForm(theForm, theQuery, "text/plain", false); 
add: submitForm($(kQueryFormId), theQuery, "text/html", false); 
context: function cqListDocuments() {    // TODO create a link to display each document?    var theForm = $(kQueryFormId);    var theQuery =        "let $est := xdmp:estimate(doc()) "        + "return ("        + "( text { 'Too many documents to display!' },"        + " text { 'First 1000 documents of', $est, 'total:' },"        + " text{})[$est gt 1000],"        + "  for $i in doc()[1 to 1000] return text { base-uri($i) }"        + ")";    submitForm(theForm, theQuery, "text/plain", false);}
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/fa73b32cceb4f0083ba3aeb2e77c3b68663bf56d/query.js/buggy/query.js