Aria valid attr value

Moderate effort

Found on 4% of audited stores.

Audit every ARIA attribute on your pages and correct any that point to a non-existent element ID, use a disallowed value, or reference an empty/misspelled target so that assistive technologies can correctly interpret your page.

What it is

ARIA (Accessible Rich Internet Applications) attributes are special HTML attributes — like `aria-labelledby`, `aria-describedby`, `aria-controls`, and `aria-activedescendant` — that give screen readers and other assistive technologies extra information about how elements on a page work and relate to each other. Many of these attributes must contain a valid value to be meaningful: for example, `aria-labelledby="product-title"` only works if an element with the id `product-title` actually exists in the page. When an ARIA attribute is given an invalid value — a misspelled ID, a blank string, a value that doesn't exist, or a value that's not in the allowed list for that attribute — the browser and screen reader can't use it, making that element confusing or invisible to users who rely on assistive technology. WCAG Success Criterion 4.1.2 requires that all user interface components have programmatically determinable names, roles, and values — and broken ARIA values directly violate this requirement.

Why it matters

Screen reader users — including many people with visual, motor, or cognitive disabilities — depend entirely on correctly coded ARIA to understand interactive components like modals, dropdowns, carousels, tabs, and forms. A broken `aria-labelledby` value, for example, means a blind shopper hears nothing when their screen reader focuses on your "Add to Cart" button or product image. Beyond the direct user impact, WCAG 4.1.2 is a Level A requirement — the baseline — so violations expose your store to accessibility complaints and legal risk in jurisdictions like the US (ADA), UK (Equality Act), and EU (European Accessibility Act). Google also uses accessibility signals as part of overall page-quality evaluation, so a more accessible, error-free store can benefit organic rankings over time. Fixing invalid ARIA values is a targeted, low-cost change that directly improves the experience for millions of assistive-technology users worldwide.

How to fix it

  1. Identify every failing element by running an accessibility audit tool (e.g., axe DevTools browser extension, Lighthouse, or WAVE) and noting the element, attribute name, and the offending value flagged as invalid.
  2. For ID-reference attributes (aria-labelledby, aria-describedby, aria-controls, aria-owns, aria-activedescendant): verify that the ID value in the attribute exactly matches an existing element's id attribute on the same page — check for typos, case mismatches, or elements that were removed from the page.
  3. For enumerated-value attributes (aria-live, aria-haspopup, aria-autocomplete, aria-orientation, aria-sort, aria-expanded, aria-checked, etc.): consult the WAI-ARIA specification or MDN ARIA reference to confirm you are using only the allowed keyword values for that specific attribute (e.g., aria-live only accepts 'off', 'polite', or 'assertive').
  4. Remove or fix any ARIA attribute whose value is an empty string when the attribute requires a non-empty value — either supply the correct value or remove the attribute entirely if it is not needed.
  5. After editing, save and re-run the accessibility scanner to confirm all aria-valid-attr-value violations are resolved before publishing.
  6. Document the corrected ARIA patterns in your team's component library or theme notes so the same mistakes are not reintroduced when the theme or page templates are updated.
<!-- WRONG: aria-labelledby points to an ID that doesn't exist -->
<button aria-labelledby="prodcut-title">Add to Cart</button>

<!-- WRONG: aria-live has an invalid value -->
<div aria-live="yes">Updating cart…</div>

<!-- CORRECT: aria-labelledby matches a real element ID exactly -->
<h1 id="product-title">Blue Wool Scarf</h1>
<button aria-labelledby="product-title">Add to Cart</button>

<!-- CORRECT: aria-live uses an allowed keyword -->
<div aria-live="polite">Updating cart…</div>

<!-- CORRECT: aria-describedby references an existing element -->
<input type="email" id="email" aria-describedby="email-hint" />
<span id="email-hint">We'll never share your email.</span>

Fix it on your platform

Pick your platform for the exact steps.

How to fix aria valid attr value on Shopify
  1. Go to Online Store → Themes → click the three-dot menu next to your active theme → Edit code.
  2. Search across all Liquid files (use the search icon in the code editor) for 'aria-labelledby', 'aria-describedby', 'aria-controls', 'aria-live', and other ARIA attributes to locate where they are set.
  3. For each ARIA attribute that references an ID (e.g., aria-labelledby="product-title"), make sure the referenced id="product-title" element is rendered in the same page template and the ID string matches exactly — including case.
  4. For keyword ARIA attributes (aria-live, aria-haspopup, etc.), replace any non-standard values with the correct allowed keyword from the WAI-ARIA spec.
  5. If the issue is inside an app-injected widget (e.g., a reviews or chat app), contact the app developer — you cannot edit their iframe or injected code directly.
  6. Save changes, then preview the theme and rerun an axe or Lighthouse audit to verify no aria-valid-attr-value errors remain.
How to fix aria valid attr value on WooCommerce
  1. In WordPress admin, go to Appearance → Theme File Editor (or use a child theme and a code editor like VS Code via FTP/SFTP).
  2. Search your active theme's template files (especially woocommerce/ overrides in your child theme, header.php, footer.php, and any custom page builders' output) for ARIA attributes.
  3. Correct any ID-reference mismatches or invalid keyword values directly in the template PHP/HTML files.
  4. If the issue is in a plugin's output (e.g., a slider or modal plugin), check the plugin's settings for ARIA options; if none exist, open a support ticket with the plugin author or override their template in your child theme.
  5. Install the free axe DevTools browser extension, load the affected page, run the scan, and confirm all aria-valid-attr-value violations are gone.
  6. Flush any caching plugin (e.g., WP Super Cache, W3 Total Cache) after saving so the updated markup is served.
How to fix aria valid attr value on BigCommerce
  1. Go to Storefront → My Themes → click Customize on your active theme, or download the theme ZIP via Theme Editor → Advanced → Download.
  2. Unzip and search all .html template files (especially templates/components/ and templates/pages/) for ARIA attributes using a code editor.
  3. Fix ID-reference mismatches and invalid keyword values, then re-upload or push the corrected theme.
  4. For widgets added via Page Builder, go to Content → Page Builder, select the widget, and look for ARIA/accessibility settings in the widget's configuration panel.
  5. Rerun an axe DevTools or Lighthouse audit on the live storefront after publishing to verify the fix.
How to fix aria valid attr value on Wix
  1. Open the Wix Editor for your site.
  2. Click on the specific element that has the invalid ARIA value (e.g., a button, image, or form field).
  3. Open its Settings or Accessibility panel (the 'Accessibility' option appears in the element's settings for supported elements) and correct the label/description that maps to the ARIA attribute.
  4. For custom-coded sections using Wix Velo (Dev Mode), go to the relevant Page Code or Site Code file and locate the $w() selector where the ARIA attribute is set; fix the value to reference a valid element ID or use a correct keyword.
  5. If a Wix App (e.g., Wix Stores widget, Wix Bookings) is generating the invalid ARIA, report it to Wix Support — third-party app injections inside Wix are not editable by the store owner.
  6. Preview your site and test with the axe browser extension before publishing.
How to fix aria valid attr value on Squarespace
  1. Go to Website → Pages and open the page containing the failing element in the page editor.
  2. If the issue is in a built-in Squarespace block (e.g., a gallery, button, or form), check the block's content settings for a label or description field — Squarespace auto-generates ARIA from these fields; filling them in correctly often resolves the issue.
  3. For custom code (CSS/JS injected via Settings → Advanced → Code Injection or a Code Block), locate the snippet and correct the ARIA attribute value directly.
  4. Squarespace 7.1 themes do not expose full template editing, so if the invalid ARIA comes from a core Squarespace component you cannot edit, file a bug report via Squarespace Support.
  5. After saving, use the axe DevTools browser extension to verify the violation is resolved.
How to fix aria valid attr value on Webflow
  1. Open your project in the Webflow Designer.
  2. Select the element with the invalid ARIA attribute in the Navigator or on the canvas.
  3. In the right-hand panel, click the Element Settings tab (the gear icon) and scroll to the Custom Attributes section.
  4. Find the offending ARIA attribute (e.g., aria-labelledby) and correct its value — ensure it matches the exact ID of another element on the page, or change the keyword to an allowed value.
  5. To find/set the ID of the target element, select that element → Element Settings → ID field.
  6. Publish the site, then run an axe DevTools audit on the live URL to confirm the fix.
How to fix aria valid attr value on Adobe Commerce (Magento)
  1. Identify the PHTML template or JavaScript UI component responsible for the failing element using browser DevTools (right-click → Inspect to see the element, then trace to the template via layout XML).
  2. Locate the file in your custom theme under app/design/frontend/<Vendor>/<Theme>/ — copy the core file into your theme directory if it does not already exist there (never edit core files directly).
  3. Open the PHTML or .js file in your code editor and find the ARIA attribute; fix the ID reference or keyword value.
  4. For JavaScript-rendered components (e.g., Knockout.js or React widgets), search the corresponding .js or .html knockout template file for the attribute binding and correct it.
  5. Run bin/magento cache:clean && bin/magento cache:flush after saving, then reload the page and verify with the axe DevTools browser extension.
How to fix aria valid attr value on Wix Studio
  1. Open Wix Studio and navigate to the page with the failing element.
  2. Select the element on the canvas, then open its Accessibility Settings panel to review and correct any label or description values that map to ARIA attributes.
  3. For custom code using Velo, open the Code panel for the page or site, find the relevant $w() call where the ARIA attribute is set, and correct the value.
  4. Publish and verify with the axe browser extension.
How to fix aria valid attr value on PrestaShop
  1. In your PrestaShop back office, go to Design → Theme & Logo → click 'Use this theme' or navigate to your active theme's files via FTP.
  2. In your active child theme folder (themes/<your-theme>/), search all .tpl (Smarty template) files for ARIA attributes using a code editor.
  3. Correct ID-reference mismatches and invalid keyword values directly in the template files.
  4. Clear the theme cache via Design → Theme & Logo → Advanced Settings → Clear cache, then retest with axe DevTools.

Does your site have this issue?

Run a free SEOLZ audit to find aria valid attr value — and every other issue — across your whole site in minutes.

Scan my site free

Frequently asked questions

What is Aria valid attr value?

ARIA (Accessible Rich Internet Applications) attributes are special HTML attributes — like `aria-labelledby`, `aria-describedby`, `aria-controls`, and `aria-activedescendant` — that give screen readers and other assistive technologies extra information about how elements on a page work and relate to each other. Many of these attributes must contain a valid value to be meaningful: for example, `aria-labelledby="product-title"` only works if an element with the id `product-title` actually exists in the page. When an ARIA attribute is given an invalid value — a misspelled ID, a blank string, a value that doesn't exist, or a value that's not in the allowed list for that attribute — the browser and screen reader can't use it, making that element confusing or invisible to users who rely on assistive technology. WCAG Success Criterion 4.1.2 requires that all user interface components have programmatically determinable names, roles, and values — and broken ARIA values directly violate this requirement.

Why does aria valid attr value matter?

Screen reader users — including many people with visual, motor, or cognitive disabilities — depend entirely on correctly coded ARIA to understand interactive components like modals, dropdowns, carousels, tabs, and forms. A broken `aria-labelledby` value, for example, means a blind shopper hears nothing when their screen reader focuses on your "Add to Cart" button or product image. Beyond the direct user impact, WCAG 4.1.2 is a Level A requirement — the baseline — so violations expose your store to accessibility complaints and legal risk in jurisdictions like the US (ADA), UK (Equality Act), and EU (European Accessibility Act). Google also uses accessibility signals as part of overall page-quality evaluation, so a more accessible, error-free store can benefit organic rankings over time. Fixing invalid ARIA values is a targeted, low-cost change that directly improves the experience for millions of assistive-technology users worldwide.

How do I fix aria valid attr value?

Audit every ARIA attribute on your pages and correct any that point to a non-existent element ID, use a disallowed value, or reference an empty/misspelled target so that assistive technologies can correctly interpret your page.

Authoritative references

Related Accessibility (WCAG) issues