;

    template.innerHTML = '<head><title>test</title></head>';

    doc.body.appendChild(template);

    assert_equals(template.content.childNodes.length, 1,
            'Wrong number of template content children');
    assert_equals(template.content.firstChild.nodeName, 'TITLE',
            'Template should contain children of ignored HEAD element');

}, 'Ignore HEAD token. Test not empty HEAD element assigned to template innerHTML');


test(function() {
    var doc = newHTMLDocument();
    var template =