Skip to content

Commit 1671e5c

Browse files
committed
Get svg baseVal
1 parent d0c6a81 commit 1671e5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

a11y.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,12 @@ code: ${form.outerHTML}`
373373
const svgRole = svg.getAttribute('role');
374374
if (svgRole !== 'img') {
375375
warnMsg(
376-
`Should add role=img to svg id: ${svg.id} & class: ${svg.className}`
376+
`Should add role=img to svg id: ${svg.id} & class: ${svg.className.baseVal}`
377377
);
378378
}
379379
} else {
380380
warnMsg(
381-
`Should add role=img to svg id: ${svg.id} & class: ${svg.className}`
381+
`Should add role=img to svg id: ${svg.id} & class: ${svg.className.baseVal}`
382382
);
383383
}
384384
});

0 commit comments

Comments
 (0)