diff --git a/src/print-html.ts b/src/print-html.ts index 485c6ec..129e02b 100644 --- a/src/print-html.ts +++ b/src/print-html.ts @@ -514,6 +514,7 @@ const PRINTERS: PrinterCollection = { SvelteElement: new ElementPrinter(), SvelteComponent: new ElementPrinter(), SvelteFragment: new ElementPrinter(), + TitleElement: new ElementPrinter(), Attribute: NoOp, SpreadAttribute: NoOp, OnDirective: NoOp, diff --git a/src/tests/print-html.test.ts b/src/tests/print-html.test.ts index 9329c7c..9a3f631 100644 --- a/src/tests/print-html.test.ts +++ b/src/tests/print-html.test.ts @@ -175,6 +175,8 @@ describe('Svelte Component', () => { test('', () => { testHtmlPrinter(''); + testHtmlPrinter('title'); + testHtmlPrinter(''); }); test('', () => {