WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#39287 closed defect (bug) (fixed)

TinyMCE strips WAI-ARIA attributes

Reported by: paulschreiber Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: TinyMCE Keywords: upstream
Focuses: accessibility Cc:
PR Number:

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 (5)

#1 @azaozz
3 years ago

  • Milestone changed from Awaiting Review to Future Release

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.

#3 @azaozz
3 years ago

  • Keywords upstream added

#4 @azaozz
2 years ago

  • Resolution set to fixed
  • Status changed from new to closed

I believe this is fixed in TinyMCE 4.6.3 in WordPress 4.8.

#5 @netweb
2 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.