mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
publisher: Exclude comment and doctype elements from writeStats
- Reorder code blocks - Rename cssClassCollectorWriter to htmlElementCollectorWriter, as it just collect html element information - Expand benchmark to test for minified and unminified content Fixes #8396 Fixes #8417
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
2bb9496ce2
commit
bc80022e03
@@ -1113,7 +1113,7 @@ ABC.
|
||||
els := stats.HTMLElements
|
||||
|
||||
b.Assert(els.Classes, qt.HasLen, 3606) // (4 * 900) + 4 +2
|
||||
b.Assert(els.Tags, qt.HasLen, 9)
|
||||
b.Assert(els.Tags, qt.HasLen, 8)
|
||||
b.Assert(els.IDs, qt.HasLen, 1)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user