Fix buildStats when tags and classes are disabled

Fixes #11202
This commit is contained in:
Bjørn Erik Pedersen
2023-07-03 09:58:33 +02:00
parent 5afc89f2bf
commit ceb486f98c
2 changed files with 9 additions and 5 deletions

View File

@@ -372,11 +372,6 @@ func htmlLexToEndOfComment(w *htmlElementsCollectorWriter) htmlCollectorStateFun
func (w *htmlElementsCollectorWriter) parseHTMLElement(elStr string) (el htmlElement, err error) {
conf := w.collector.conf
if conf.DisableTags && conf.DisableClasses {
// Nothing to do.
return
}
tagName := parseStartTag(elStr)
el.Tag = strings.ToLower(tagName)