From 55c809624d7d44c4b38384a8a73c469b64f181c0 Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Fri, 26 Jun 2020 01:42:16 +0800 Subject: [PATCH] fix collapsing HTML with static content (#5059) --- CHANGELOG.md | 1 + .../render_dom/wrappers/Element/index.ts | 18 +++++++++--------- test/js/samples/bind-open/expected.js | 4 +--- .../samples/innerhtml-with-comments/_config.js | 8 ++++++++ .../innerhtml-with-comments/main.svelte | 5 +++++ 5 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 test/runtime/samples/innerhtml-with-comments/_config.js create mode 100644 test/runtime/samples/innerhtml-with-comments/main.svelte diff --git a/CHANGELOG.md b/CHANGELOG.md index d760b0e8dd5e..82d0d58a1582 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Fix handling of `import`ed value that is used as a store and is also mutated ([#5019](https://github.com/sveltejs/svelte/issues/5019)) * Do not display `a11y-missing-content` warning on elements with `contenteditable` bindings ([#5020](https://github.com/sveltejs/svelte/issues/5020)) * Fix handling of `this` in inline function expressions in the template ([#5033](https://github.com/sveltejs/svelte/issues/5033)) +* Fix collapsing HTML with static content ([#5040](https://github.com/sveltejs/svelte/issues/5040)) * Update `