Skip to content

Adding options alt-attribute for image#258

Open
csornmo wants to merge 2 commits intodavidshimjs:masterfrom
csornmo:master
Open

Adding options alt-attribute for image#258
csornmo wants to merge 2 commits intodavidshimjs:masterfrom
csornmo:master

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"
});

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