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, {
"IMG": ["alt", "title", "src"],
"A": ["title", "href", "text"],
"INPUT": ["name"]
"img": ["alt", "title", "src"],
"a": ["title", "href", "text"],
"input": ["name"]
})
return (attr_extractors[attr](elem)