Skip to content
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

Adding options alt-attribute for image #258

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

csornmo
Copy link

@csornmo csornmo commented Oct 1, 2021

Fixed : Adding options alt-attribute for image

var qrcode = new QRCode("qrcode", {
  alt: "image alt text",
});
Adding options alt-attribute for image
@csornmo
Copy link
Author

csornmo commented Oct 1, 2021

Adding options alt-attribute for image

var qrcode = new QRCode("qrcode", {
  alt: "image alt text"
});

@@ -362,7 +362,7 @@ var QRCode;
this._oContext = this._elCanvas.getContext("2d");
this._bIsPainted = false;
this._elImage = document.createElement("img");
this._elImage.alt = "Scan me!";
this._elImage.alt = htOption.alt;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add || "Scan me!" to leave the current behaviour as default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants