fix: typo (#740)

This commit is contained in:
tsuemura 2020-01-30 02:40:13 +09:00 committed by GitHub
parent a65bf4179f
commit fc93b886d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,7 +589,7 @@ class Engine {
appendCue(`img[alt=${JSON.stringify(alt)}]`, 'imgAlt', this.options.imgAltScore, element, lca, alt);
}
if (this.options.ariaLabelScore) {
const ariaLabel = element.getAttribute('aira-label');
const ariaLabel = element.getAttribute('aria-label');
if (ariaLabel)
appendCue(JSON.stringify(`[aria-label=${JSON.stringify(ariaLabel)}]`), 'ariaLabel', this.options.ariaLabelScore, element, lca, ariaLabel);
}