pull/16345/head
ComputerGuy 2 months ago
parent 6337373f0e
commit 389cc32826

@ -659,7 +659,7 @@ export function check_element(node, context) {
// element-specific checks
const is_labelled = attribute_map.has('aria-label') || attribute_map.has('aria-labelledby');
switch(node.name) {
switch (node.name) {
case 'a':
case 'button': {
const is_hidden = get_static_value(attribute_map.get('aria-hidden')) === 'true';
@ -869,7 +869,7 @@ function validate_aria_attribute_value(attribute, name, schema, value) {
if (value === null) return;
if (value === true) value = '';
switch(type) {
switch (type) {
case 'id':
case 'string': {
if (value === '') {

Loading…
Cancel
Save