-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARIA reflection polyfill should treat setting undefined the same as null #3284
Comments
This issue has been linked to a new work item: W-12370589 |
Interestingly, it turns out this is not actually how the spec is written. I've filed a spec issue: w3c/aria#1858 However, it is consistently how Chrome/Safari behave. They treat I would vote that we align the polyfill with the de-facto implementations from Chrome/Safari. It would be bizarre if Firefox behaved differently from Chrome/Safari, or if the non-standard props like We can also wait to see if the spec authors want to push back against the browser implementations. I have a patch ready to go if we want to align with the de-facto implementation: 2f04edd |
Description
We treat setting
null
onaria*
properties as equivalent to removing the attribute.lwc/packages/@lwc/aria-reflection/src/polyfill.ts
Lines 19 to 20 in 1b85b46
But Chrome/Safari treat
undefined
the same way (and we don't):In Firefox, using our polyfill, the above is
"undefined"
instead ofnull
.Steps to Reproduce
Repro
The text was updated successfully, but these errors were encountered: