diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-08-19 12:30:50 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-08-22 13:47:47 +0300 |
commit | bc0743ed8eafc3c2d9b21a1e8f1b05d64b85e8ba (patch) | |
tree | ebdc81de4e7a616d00043cb6c6b5a8a2f2e6db5b /resources | |
parent | ffa2fe61172aa0d892234b23d1497c77a6a7f5c4 (diff) |
Prevent minifier from removing quoutes around post-processed attributes
Fixes #8884
Diffstat (limited to 'resources')
-rw-r--r-- | resources/postpub/postpub.go | 6 |
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 { |