diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-04-21 12:57:45 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-04-21 21:00:52 +0200 |
commit | f37e77f2d338cf876cfa637a662acd76f0f2009b (patch) | |
tree | 76e80b012377cb03e3e02ecf7c34760d0d337f52 /publisher/htmlElementsCollector.go | |
parent | 27af5a339a4d3c5712b5ed946a636a8c21916039 (diff) |
Fix class collector when running with --minify
Also add a related stresstest.
Fixes #7161
Diffstat (limited to 'publisher/htmlElementsCollector.go')
-rw-r--r-- | publisher/htmlElementsCollector.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/publisher/htmlElementsCollector.go b/publisher/htmlElementsCollector.go index c6e0d3f0f..6166c49ad 100644 --- a/publisher/htmlElementsCollector.go +++ b/publisher/htmlElementsCollector.go @@ -87,11 +87,6 @@ func (w *cssClassCollectorWriter) Write(p []byte) (n int, err error) { if w.isCollecting { for ; i < len(p); i++ { b := p[i] - if !w.inQuote && b == '/' { - // End element, we don't care about those. - w.endCollecting(true) - break - } w.toggleIfQuote(b) if !w.inQuote && b == '>' { w.endCollecting(false) |