From f37e77f2d338cf876cfa637a662acd76f0f2009b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 21 Apr 2020 12:57:45 +0200 Subject: Fix class collector when running with --minify Also add a related stresstest. Fixes #7161 --- publisher/htmlElementsCollector.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'publisher/htmlElementsCollector.go') 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) -- cgit v1.2.3