-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for alternative texts from img and input type=image #34
base: master
Are you sure you want to change the base?
Conversation
if (element.getAttribute('alt')) { | ||
alternatives += element.getAttribute('alt'); | ||
} | ||
return alternatives; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just return it, with || ''
?
Thanks, this is awesome! I'll go try to revive my work on upgrading to latest nodes, which I forgot all about :) |
If you update with |
9bf763f
to
b4a5031
Compare
Done so far. |
ping @dominykas Any time for review? |
Sorry, important deadlineand holidays got in the way. Will get back to normal life next week. |
@dominykas |
@dominykas |
Is this project still maintained? Anything I can help to get this released...? |
@dominykas Any chance for release of this fix? Or do you see any issue with this? |
Solves #5
Supports texts from img and input[type=image] alt-attributes.
Included a test case.
All tests ran locally without errors.