#39287 closed defect (bug) (fixed)
TinyMCE strips WAI-ARIA attributes
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | TinyMCE | Keywords: | upstream |
Focuses: | accessibility | Cc: |
Description
WAI-ARIA attributes are stripped when switching from Text to Visual mode.
Attributes that should be allowed:
role
aria-hidden
aria-checked
aria-selected
aria-pressed
aria-label
aria-labelledby
aria-disabled
aria-grabbed
aria-controls
aria-describedby
aria-required
tabindex
Change History (6)
Note: See
TracTickets for help on using
tickets.
Related: #30421.
Would be best if this is fixed upstream in TinyMCE. Looking at https://core.trac.wordpress.org/ticket/30421#comment:25, not sure if we would want to allow all of the above attributes. For example I've seen a lot of misuse of
tabindex
. However all WAI-ARIA attributes should probably be allowed by default in the editor.