aboutsummaryrefslogtreecommitdiffhomepage
path: root/publisher/htmlElementsCollector_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-09-28 22:17:36 +0200
committerBjørn Erik Pedersen <[email protected]>2020-09-28 22:17:36 +0200
commit111344113bf8c16ae45528d67ff408da15961727 (patch)
treecc4998e4945b70944ff28302acc4d485d7dac619 /publisher/htmlElementsCollector_test.go
parent4855c186d8f05e5e1b0f681b4aa6482a033df241 (diff)
downloadhugo-111344113bf8c16ae45528d67ff408da15961727.tar.gz
hugo-111344113bf8c16ae45528d67ff408da15961727.zip
publisher: Fix writeStats with quote inside quotes
Fixes #7746
Diffstat (limited to 'publisher/htmlElementsCollector_test.go')
-rw-r--r--publisher/htmlElementsCollector_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/publisher/htmlElementsCollector_test.go b/publisher/htmlElementsCollector_test.go
index 24bf87c2d..6b5ef9863 100644
--- a/publisher/htmlElementsCollector_test.go
+++ b/publisher/htmlElementsCollector_test.go
@@ -87,6 +87,8 @@ func TestClassCollector(t *testing.T) {
{"Alpine transition 1", `<div x-transition:enter-start="opacity-0 transform mobile:-translate-x-8 sm:-translate-y-8">`, f("div", "mobile:-translate-x-8 opacity-0 sm:-translate-y-8 transform", "")},
{"Vue bind", `<div v-bind:class="{ active: isActive }"></div>`, f("div", "active", "")},
+ // https://github.com/gohugoio/hugo/issues/7746
+ {"Apostrophe inside attribute value", `<a class="missingclass" title="Plus d'information">my text</a><div></div>`, f("a div", "missingclass", "")},
} {
c.Run(test.name, func(c *qt.C) {
w := newHTMLElementsCollectorWriter(newHTMLElementsCollector())