validate <title> elements

pull/1367/head
Rich Harris 7 years ago
parent f79bede8a9
commit bb30e26d21

@ -13,7 +13,7 @@ export default function validateHead(validator: Validator, node: Node, refs: Map
// TODO ensure only valid elements are included here
node.children.forEach(node => {
if (node.type !== 'Element') return; // TODO handle {{#if}} and friends?
validateElement(validator, node, refs, refCallees, [], [], false);
if (node.type !== 'Element' && node.type !== 'Title') return; // TODO handle {{#if}} and friends?
validateElement(validator, node, refs, refCallees, [], []);
});
}

Loading…
Cancel
Save