Fix upper-case tag names for WordHinter

This commit is contained in:
Florian Bruhin 2016-08-08 15:13:30 +02:00
parent b8e2d5f8f6
commit 3c573ac187

View File

@ -1027,9 +1027,9 @@ class WordHinter:
} }
extractable_attrs = collections.defaultdict(list, { extractable_attrs = collections.defaultdict(list, {
"IMG": ["alt", "title", "src"], "img": ["alt", "title", "src"],
"A": ["title", "href", "text"], "a": ["title", "href", "text"],
"INPUT": ["name"] "input": ["name"]
}) })
return (attr_extractors[attr](elem) return (attr_extractors[attr](elem)