antonmedv / finder

CSS Selector Generator 🗺
MIT License
1.36k stars 96 forks source link

Enable possibility of taking the tag name into account when deciding whether to use a class/id/attr. #74

Open eoghanmurray opened 1 year ago

eoghanmurray commented 1 year ago

Main motivation is to only allow the src attribute to be used if it's on an image , so I'd be happy if only config.attr was updated with this change, but included the others for completeness.

eoghanmurray commented 1 year ago

I didn't update docs as thought it might confuse things too much