Anchors on List Items #59351
Labels
[Block] List
Affects the List Block
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Description
As far as I can tell, the official definition of <li> includes the ID attribute, but this is not implemented, and indeed is rejected by WP and the Gutenberg editor, even when I add it as custom HTML.
https://www.w3.org/TR/2012/WD-html-markup-20121025/global-attributes.html
Step-by-step reproduction instructions
Select any list item, not the whole list group. There will be no ability to add an anchor to a list item, and attempting to add an anchor (I used a single digit number reflecting a footnote reference) is rejected when converting back to "edit visually".
Screenshots, screen recording, code snippet
No response
Environment info
I'm using the latest version of everything as of February 2024 in a Chrome browser in Windows 10.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: