You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ordered list items should have a way to unset the applied HTML type attribute #54578
Ordered lists produced by Gutenberg by using the core/list block default to a markup that looks like:
<ol>
<li>List item</li>
</ol>
Upon applying a selection from the Numbering style dropdown, the HTML attribute type is applied to the <ol> block resulting in the following markup
<ol type="a">
<li>List item</li>
</ol>
However, because the UI of the numbering style dropdown doesn't have a reset button or a setting for (no type) within, there is no way to "unset" this control and have it default back to the unadorned <ol> tag.
Step-by-step reproduction instructions
Start by creating an ordered list from the following content.
Congue vitae urna augue taciti torquent venenatis phasellus donec neque.
Fusce varius congue dolor lacinia.
Himenaeos sed condimentum magna venenatis erat convallis mattis?
Sodales mattis vestibulum ut erat magnis blandit.
Publish the post or page and inspect the markup produced.
Apply a different setting to the core/list block to enforce a specific type attribute on the block.
Publish and inspect the results once again. You'll see the type attribute added to the <ol>
Edit the post/page again and attempt to remove that type attribute using the default controls.
Thanks for the report.The List block's Numbering Style has been changed to the inline style instead of the type attribute to resolve issues reported in #54384, #52826, etc. Its PR is #53301.
This PR does not output the inline style when the default "Numbers" style is selected. This PR will be part of WordPress 6.4 or Gutenberg plugin 16.7.
I'd like to close this issue as I don't think the reported problem will occur anymore, but if there's anything I've missed, please comment.
Activity
t-hamano commentedon Sep 19, 2023
Thanks for the report.The List block's Numbering Style has been changed to the inline style instead of the
typeattribute to resolve issues reported in #54384, #52826, etc. Its PR is #53301.This PR does not output the inline style when the default "Numbers" style is selected. This PR will be part of WordPress 6.4 or Gutenberg plugin 16.7.
I'd like to close this issue as I don't think the reported problem will occur anymore, but if there's anything I've missed, please comment.
SteveRyan-ASU commentedon Sep 19, 2023
Thanks for the explanation and the references @t-hamano. 👍