-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Generated aria labels for links in block elements can destroy the output #12683
Comments
I feel like I saw a similar issue before about this 🤔 |
Thank you for the clarification and the included screens. Due to #12325 the error happens even if the greater than > character is not in the link text itself. |
Right! 😞 |
Easily reproducible from the description here: |
Just to note this was reported again on Trac, see https://core.trac.wordpress.org/ticket/46114 |
Removing the Accessibility label because not a real a11y bug. I guess it should get prioritized though. /Cc @youknowriad |
This seems fixed by #9963 |
Describe the bug
If in block elements (e.g. Listings) with the characters * ">" * or * "<" * are used in the text, there is a problem with the Aria labels for links.
The entire text of the block is included in the Aria labels. With all the special characters. The special characters are not escaped. This will destroy the output.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Before copy the content to the Aria label - escape the special characters / html charakters
Example: "<" for < | ">" for >
Another question: Why is the entire text of the block used for the Aria labels?
Desktop (please complete the following information):
Version of Gutenberg
The text was updated successfully, but these errors were encountered: