Update a11y.js

pull/16340/head
Ahmad S. 2 months ago committed by GitHub
parent 70a2592c79
commit eda506bf71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1013,7 +1013,7 @@ export function check_element(node, context) {
if (href) {
const href_value = get_static_text_value(href);
if (href_value !== null) {
if (href_value === '' || href_value === '#' || regex_js_code.test(href_value)) {
if (href_value === '' || href_value === '#' || regex_js_prefix.test(href_value)) {
w.a11y_invalid_attribute(href, href_value, href.name);
}
}

Loading…
Cancel
Save