From 2c55956e3a831d2d4c6d80ca85d2be7bb822175f Mon Sep 17 00:00:00 2001 From: Sahin Vardar Date: Wed, 11 Dec 2024 08:54:30 +0100 Subject: [PATCH] fix: handling (#13) --- src/print-html.ts | 1 + src/tests/print-html.test.ts | 2 ++ 2 files changed, 3 insertions(+) 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('', () => {