Extract hint tags from <button> text
This is useful for some styled buttons, including some of those found on GitHub.
This commit is contained in:
parent
cf26201e86
commit
6e279f1b1e
@ -1030,7 +1030,8 @@ 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", "placeholder"]
|
"input": ["name", "placeholder"],
|
||||||
|
"button": ["text"]
|
||||||
})
|
})
|
||||||
|
|
||||||
return (attr_extractors[attr](elem)
|
return (attr_extractors[attr](elem)
|
||||||
|
Loading…
Reference in New Issue
Block a user