Skip to content
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

nonPUAContentInSameTextElement failure possibly too aggressive #3

Open
lunelson opened this issue Jan 17, 2020 · 0 comments
Open

nonPUAContentInSameTextElement failure possibly too aggressive #3

lunelson opened this issue Jan 17, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@lunelson
Copy link

Summary

I am encountering the nonPUAContentInSameTextElement failure on content inserted via the CSS content rule in a ::before pseudo-element, which should be innocuous: for example CSS counters created with the counter() function, and on a zero-width space used to "fix" a Safari accessbility bug, where Safari does not report list semantics to AT when list-style: none is applied (see https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html)

The toolkit's suggestion that I should apply these characters in a span with aria-hidden="true" is not possible in this case, as this is raw HTML text content received from a CMS; nor would it be the correct way anyway, of applying css-counters for example.

Expected result

Characters such as a zero-width space or a css counter should not cause a failure.

Actual result

Failure

Test Case

The following codepen shows both techniques:

https://codepen.io/lunelson/full/abzRZYo

Additional Information

ARC Toolkit version

3.3.2.0

Operating System and version

macOS 10.15.2

Browser and version:

Chrome Version 79.0.3945.117 (Official Build) (64-bit)

@lunelson lunelson added the bug Something isn't working label Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant