Skip to content

Adding options alt-attribute for image#258

Open
csornmo wants to merge 2 commits into
davidshimjs:masterfrom
csornmo:master
Open

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

Conversation

@csornmo

@csornmo csornmo commented Oct 1, 2021

Copy link
Copy Markdown

Fixed : Adding options alt-attribute for image

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

csornmo commented Oct 1, 2021

Copy link
Copy Markdown
Author

Adding options alt-attribute for image

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

Comment thread qrcode.js
this._bIsPainted = false;
this._elImage = document.createElement("img");
this._elImage.alt = "Scan me!";
this._elImage.alt = htOption.alt;

Copy link
Copy Markdown

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