Name Description Size Coverage
adoption01.dat 6084 -
adoption02.dat 672 -
blocks.dat 9688 -
comments01.dat 3502 -
common.js 764 -
doctype01.dat 9076 -
domjs-unsafe.dat 10356 -
entities01.dat 17640 -
entities02.dat 4952 -
foreign-fragment.dat 9082 -
html5test-com.dat 4790 -
inbody01.dat 836 -
isindex.dat 774 -
main-element.dat 727 -
math.dat 1862 -
menuitem-element.dat 4015 -
namespace-sensitivity.dat 518 -
noscript01.dat 4619 -
pending-spec-changes-plain-text-unsafe.dat 927 -
pending-spec-changes.dat 851 -
plain-text-unsafe.dat 9486 -
quirks01.dat 1170 -
ruby.dat 4471 -
scriptdata01.dat 6624 -
scripted_adoption01.dat 296 -
scripted_ark.dat 631 -
scripted_webkit01.dat 603 -
search-element.dat 741 -
svg.dat 1606 -
tables01.dat 7041 -
template.dat 25142 -
template.js Template code A template is just a javascript structure. An element is represented as: [tag_name, {attr_name:attr_value}, child1, child2] the children can either be strings (which act like text nodes), other templates or functions (see below) A text node is represented as ["{text}", value] String values have a simple substitution syntax; ${foo} represents a variable foo. It is possible to embed logic in templates by using a function in a place where a node would usually go. The function must either return part of a template or null. In cases where a set of nodes are required as output rather than a single node with children it is possible to just use a list [node1, node2, node3] Usage: render(template, substitutions) - take a template and an object mapping variable names to parameters and return either a DOM node or a list of DOM nodes substitute(template, substitutions) - take a template and variable mapping object, make the variable substitutions and return the substituted template 6214 -
test.js 12714 -
tests_innerHTML_1.dat 11205 -
tests1.dat 39802 -
tests2.dat 13193 -
tests3.dat 4601 -
tests4.dat 1041 -
tests5.dat 3160 -
tests6.dat 11065 -
tests7.dat 7339 -
tests8.dat 2664 -
tests9.dat 10391 -
tests10.dat 16458 -
tests11.dat 17679 -
tests12.dat 1612 -
tests14.dat 1067 -
tests15.dat 3649 -
tests16.dat 46454 -
tests17.dat 2819 -
tests18.dat 12119 -
tests19.dat 22988 -
tests20.dat 13524 -
tests21.dat 5092 -
tests22.dat 4243 -
tests23.dat 3478 -
tests24.dat 929 -
tests25.dat 3586 -
tests26.dat 8865 -
tricky01.dat 6690 -
void-in-phrasing.dat 1890 -
webkit01.dat 14034 -
webkit02.dat 14921 -