diff --git a/src/Parser.spec.ts b/src/Parser.spec.ts index f187521e..7d015bf1 100644 --- a/src/Parser.spec.ts +++ b/src/Parser.spec.ts @@ -317,6 +317,32 @@ describe("API", () => { expect(tbodyClose).toBeLessThan(theadOpen); }); + it("should keep a ", + ), + ).toEqual([ + "", + ]); + }); + + it("should still close an open ", + "", + ]); + }); + it("should implicitly close when opens", () => { const onclosetag = vi.fn(); const onopentagname = vi.fn(); diff --git a/src/Parser.ts b/src/Parser.ts index 0d6557b3..882ea056 100644 --- a/src/Parser.ts +++ b/src/Parser.ts @@ -11,6 +11,8 @@ const formTags = new Set([ "datalist", "textarea", ]); +// A customizable `