WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#39288 closed defect (bug) (duplicate)

KSES strips WAI-ARIA attributes

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

Description

WAI-ARIA attributes are stripped when saving.

Attributes that should be allowed:
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 (2)

#1 @paulschreiber
3 years ago

See related: TinyMCE strips WAI-ARIA attributes

Likely fix is to add these attributes towp_kses_allowed_html().

#2 @ocean90
3 years ago

  • Component changed from Editor to Security
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #30421.

Note: See TracTickets for help on using tickets.