summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-19 11:30:50 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-22 12:47:47 +0200
commitbc0743ed8eafc3c2d9b21a1e8f1b05d64b85e8ba (patch)
treeebdc81de4e7a616d00043cb6c6b5a8a2f2e6db5b /resources
parentffa2fe61172aa0d892234b23d1497c77a6a7f5c4 (diff)
Prevent minifier from removing quoutes around post-processed attributes
Fixes #8884
Diffstat (limited to 'resources')
-rw-r--r--resources/postpub/postpub.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/postpub/postpub.go b/resources/postpub/postpub.go
index 85b4221fd..c11dda577 100644
--- a/resources/postpub/postpub.go
+++ b/resources/postpub/postpub.go
@@ -39,7 +39,11 @@ type PostPublishedResource interface {
const (
PostProcessPrefix = "__h_pp_l1"
- PostProcessSuffix = "__e"
+
+ // The suffix has an '=' in it to prevent the minifier to remove any enclosing
+ // quoutes around the attribute values.
+ // See issue #8884.
+ PostProcessSuffix = "__e="
)
func NewPostPublishResource(id int, r resource.Resource) PostPublishedResource {