Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: reject boolean aria-label values in a11y guard (#4352)
[._.]/ Adam Eivydb43e22fbd4e
diff --git a/.changelog/next/fixed-issue-4352.md b/.changelog/next/fixed-issue-4352.mdnew file mode 100644index 0000000000..9cf09ae57f--- /dev/null+++ b/.changelog/next/fixed-issue-4352.md@@ -0,0 +1 @@+- Reject boolean aria-label expressions in the accessibility guard (#4352)diff --git a/client/src/a11yConventions.test.js b/client/src/a11yConventions.test.jsindex 016f0e8456..a779747ffe 100644--- a/client/src/a11yConventions.test.js+++ b/client/src/a11yConventions.test.js@@ -952,10 +952,7 @@ function isNestedInLabel(src, index) {}function hasUsableAccessibleNameAttribute(tag, name) {- const value = normalizedAttributeValue(attributeValue(tag, name));- if (value === null || value === '') return false;- const trimmed = value.trim();- return trimmed !== '' && !/^(?:undefined|null)$/i.test(trimmed);+ return isUsableLabelAttributeValue(normalizedAttributeValue(attributeValue(tag, name)));}function hasUsableNativeInputName(tag) {@@ -2072,6 +2069,8 @@ describe('a11y conventions', () => {expect(isNamed('<textarea value={notes} rows={3} />', 'textarea')).toBe(false);expect(isNamed('<select aria-label="Sort by" value={sort} />', 'select')).toBe(true);+ expect(isNamed('<select aria-label={false} value={sort} />', 'select')).toBe(false);+ expect(isNamed('<select aria-label={true} value={sort} />', 'select')).toBe(false);expect(isNamed('<label htmlFor="sort">Sort by</label>\n<select id="sort" />', 'select')).toBe(true);expect(isNamed('<label>Sort by<select value={sort} /></label>', 'select')).toBe(true);expect(isNamed('<span id="notes-h">Notes</span>\n<textarea aria-labelledby="notes-h" />', 'textarea')).toBe(true);