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

Anchors on List Items #59351

Closed
ejnwebmaster opened this issue Feb 25, 2024 · 1 comment
Closed

Anchors on List Items #59351

ejnwebmaster opened this issue Feb 25, 2024 · 1 comment
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

Comments

@ejnwebmaster
Copy link

ejnwebmaster commented Feb 25, 2024

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

@ejnwebmaster ejnwebmaster added the [Type] Bug An existing feature does not function as intended label Feb 25, 2024
@jordesign jordesign added the [Block] List Affects the List Block label Feb 25, 2024
@skorasaurus skorasaurus added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Feb 27, 2024
@skorasaurus
Copy link
Member

Thanks for reporting;
This has been discussed and/or requested in #29838. Feel free to add your reaction and follow its progress in the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants