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