From 3977aab9567196913d1682f00a4ac86906ceb859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20B=C3=B6hm?= Date: Thu, 1 Apr 2021 10:38:55 -0700 Subject: [PATCH] fix: All elements should have `type: tag` in `xmlMode` --- src/__fixtures__/23-dom-lvl1.json | 2 +- src/__fixtures__/27-xml-no-special-tags.json | 29 ++++++++++++++++++++ src/index.ts | 10 ++++++- src/node.ts | 20 +++++++------- 4 files changed, 49 insertions(+), 12 deletions(-) create mode 100644 src/__fixtures__/27-xml-no-special-tags.json diff --git a/src/__fixtures__/23-dom-lvl1.json b/src/__fixtures__/23-dom-lvl1.json index 366fbf9d..4e38f411 100644 --- a/src/__fixtures__/23-dom-lvl1.json +++ b/src/__fixtures__/23-dom-lvl1.json @@ -1,6 +1,6 @@ { "name": "DOM level 1", - "options": { "withDomLvl1": true }, + "options": {}, "html": "
some stray text

Hello, world.

more stray text
", "expected": [ { diff --git a/src/__fixtures__/27-xml-no-special-tags.json b/src/__fixtures__/27-xml-no-special-tags.json new file mode 100644 index 00000000..d998b654 --- /dev/null +++ b/src/__fixtures__/27-xml-no-special-tags.json @@ -0,0 +1,29 @@ +{ + "name": "XML mode: All tags should have `type: tag`", + "options": { + "xmlMode": true + }, + "html": "