#41183 closed defect (bug) (invalid)
Type attribute for <ol> is not supported in TinyMCE in WP 4.8
| Reported by: | theideamechanic | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | TinyMCE | Version: | 4.8 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol
If <ol type="a"><li>test</li><ol> is entered into the text area of TinyMCE in either post, page, or widget text editor of a plain WP 4.8 site (regardless of the theme - fails with 2017), it resolves to "1. test" rather than "a. test". The attributes "reversed" and "start" do seem to be recognized.
I have not tested this with previous WP versions.
Doug Foster
doug@…
Change History (3)
#2
@
9 years ago
- Resolution → invalid
- Status new → closed
Thank you for the quick response and the explanation. I verified the 2017 theme CSS rule ol { list-style: decimal; } was there and over-rode the html type attribute. I _never_ would have thought to look for that (but I should have).
I’m surprised that this year's featured WP theme would include a style that (while technically correct) could be easily misinterpreted as a defect.
Guess next time I need to troubleshoot using a bare-bones theme with just a reset. :-)
Thank you, let's close the ticket.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Works without a problem here. The
typeattribute is allowed in$allowedposttagsand thus not stripped from the output or the visual editor.What you see might be theme-related. For example, Twenty Seventeen sets
ol { list-style: decimal; }in its CSS, which naturally overrides thetypeattribute. Without that definition, thetypeattribute works as expected.