Skip to content

Commit

Permalink
Merge pull request #35 from Muhnad/Fix/svgclass
Browse files Browse the repository at this point in the history
Get svg baseVal
  • Loading branch information
Muhnad authored Jun 28, 2017
2 parents d0c6a81 + 1671e5c commit ba85b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,12 @@ code: ${form.outerHTML}`
const svgRole = svg.getAttribute('role');
if (svgRole !== 'img') {
warnMsg(
`Should add role=img to svg id: ${svg.id} & class: ${svg.className}`
`Should add role=img to svg id: ${svg.id} & class: ${svg.className.baseVal}`
);
}
} else {
warnMsg(
`Should add role=img to svg id: ${svg.id} & class: ${svg.className}`
`Should add role=img to svg id: ${svg.id} & class: ${svg.className.baseVal}`
);
}
});
Expand Down

0 comments on commit ba85b53

Please sign in to comment.