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:
Dirk Olbrich
2021-04-12 23:42:51 +02:00
committed by Bjørn Erik Pedersen
parent 2bb9496ce2
commit bc80022e03
3 changed files with 328 additions and 191 deletions

View File

@@ -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)
}
}