fix failing test

print
Manuel Serret 3 days ago
parent 5fb2bb4f42
commit 8817682b42

@ -870,6 +870,24 @@ const svelte_visitors = {
context.write(node.data);
},
TitleElement(node, context) {
context.write('<title');
for (const attribute of node.attributes) {
// TODO handle multiline
context.write(' ');
context.visit(attribute);
}
if (node.fragment) {
context.write('>');
block(context, node.fragment, true);
context.write(`</title>`);
} else {
context.write('/>');
}
},
TransitionDirective(node, context) {
const directive = node.intro && node.outro ? 'transition' : node.intro ? 'in' : 'out';
context.write(`${directive}:${node.name}`);

@ -0,0 +1,4 @@
<svelte:head>
<title>Hello world!</title>
<meta name="description" content="This is where the description goes for SEO" />
</svelte:head>
Loading…
Cancel
Save