Fix aria-valid-attr-value in Webflow
Webflow sites frequently trigger aria-valid-attr-value when designers manually add Custom Attributes like aria-expanded='open', copy-paste an accordion Interaction without updating the panel's Element ID referenced by aria-controls, or leave a CMS-bound aria-labelledby pointing to an empty ID.
Before and after
<!-- Broken Webflow custom FAQ trigger (invalid aria-expanded="open" & wrong ID) -->
<button
type="button"
class="faq-trigger"
aria-expanded="open"
aria-controls="faq-body-1"
>
How does multi-domain monitoring work?
</button>
<div id="faq-content-1" class="faq-panel">
One flat plan covers up to 15 client domains with template deduplication.
</div><!-- Fixed Webflow custom FAQ trigger (valid "true"/"false" + exact matching Element ID) -->
<button
type="button"
class="faq-trigger"
aria-expanded="true"
aria-controls="faq-content-1"
>
How does multi-domain monitoring work?
</button>
<div id="faq-content-1" class="faq-panel">
One flat plan covers up to 15 client domains with template deduplication.
</div>Fixed vs. broken example
Never interpolate unvalidated booleans, undefined IDs, or custom strings like 'open'/'closed' into ARIA attributes; only render aria-controls when the controlled ID exists in the DOM.
Playwright + axe-core check
import { test, expect } from "@playwright/test";
import AxeBuilder from "@axe-core/playwright";
test("Webflow FAQ accordions and custom attributes pass aria-valid-attr-value", async ({ page }) => {
await page.goto("/faq");
const results = await new AxeBuilder({ page })
.withRules(["aria-valid-attr-value"])
.analyze();
expect(results.violations).toEqual([]);
});Template deduplication tip
A duplicated Webflow FAQ Component with a mismatched aria-controls Custom Attribute fails across every landing page using that Component. Fix the master Component once and publish to clear every URL.
What NVDA and VoiceOver announce
Invalid ARIA tokens (like aria-expanded='open'), broken IDREFs (aria-controls pointing to a nonexistent or unmounted ID), or mistyped booleans cause browsers and screen readers to silently drop interactive state announcements.
NVDA (Windows)
"Shipping & Returns FAQ, button" (collapsed/expanded state omitted due to invalid token)
"Shipping & Returns FAQ, button, expanded"
VoiceOver (macOS / iOS)
"Shipping & Returns FAQ, button" (state not exposed)
"Shipping & Returns FAQ, expanded, button"
Common questions
Why should I use Webflow's native Dropdown/Tabs or <details> instead of raw custom ARIA?
What causes aria-controls failures in Webflow CMS Collection Lists?
Which ARIA values are commonly mistyped in Webflow Custom Attributes?
Test a URL for aria-valid-attr-value
Enter any public URL for a free WCAG 2.2 AA check—no account or credit card required.
Managing Webflow client sites? Monitor 15 sites on one flat plan with white-label portals and branded executive PDFs—$1,140/yr ($95/mo billed annually, 24-month rate lock + onboarding) for Founding 10 agencies.