add missing `:`

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

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

Loading…
Cancel
Save