make URI schemes case insecsitive.

pull/4733/head
kjj6198 6 years ago
parent b7b86d46ad
commit d39f2b8cb5

@ -428,7 +428,7 @@ export default class Element extends Node {
if (attribute) {
const value = attribute.get_static_value();
if (value === '' || value === '#' || /^\W*javascript:/.test(value)) {
if (value === '' || value === '#' || /^\W*javascript:/i.test(value)) {
component.warn(attribute, {
code: `a11y-invalid-attribute`,
message: `A11y: '${value}' is not a valid ${attribute.name} attribute`

Loading…
Cancel
Save