[wp-trac] [WordPress Trac] #29815: Text editor content not accessible for screen readers

WordPress Trac noreply at wordpress.org
Tue Sep 30 21:35:33 UTC 2014


#29815: Text editor content not accessible for screen readers
---------------------------------------+-----------------------------
 Reporter:  afercia                    |      Owner:
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  Editor                     |    Version:  4.0
 Severity:  normal                     |   Keywords:
  Focuses:  accessibility, javascript  |
---------------------------------------+-----------------------------
 Investigating on what's been
 [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 ui&day=2014-09-29&sort=asc#m200815 reported on IRC] by @_Redd

  Strange, I find that NVDA will "read" what's in the TinyMCE editor for
 the visual tab, but not the text one. It will read what you're typing in,
 of course, but it won't read what's already there. Pretty bad scenario.

 and of course that's true and I could reproduce testing with Chrome and
 NVDA.

 Turns out that when TinyMCE is initialized, it adds an attribute `aria-
 hidden="true"` to the textarea. Of course this doesn't happen when TinyMCE
 is not initialized yet, when on page load the active editor is the "Text"
 one. It will when you switch to "Visual" and switch back to "Text".
 At this point, the "Text" editor textarea content is hidden for screen-
 readers.

 When switching to the "Text" editor, the aria-hidden attribute needs to be
 set to "false" and then set back to "true" when switching to the "Visual"
 editor. See proposed attached patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29815>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list