|
|
@ -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:/i.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`
|
|
|
|