[wp-trac] [WordPress Trac] #47156: Consider a way to clear the wp.a11y.speak() live regions

WordPress Trac noreply at wordpress.org
Thu Aug 22 19:57:49 UTC 2019


#47156: Consider a way to clear the wp.a11y.speak() live regions
-------------------------------------+-------------------------------------
 Reporter:  afercia                  |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  5.3
Component:  Administration           |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots          |     Focuses:  accessibility,
  wpcampus-report                    |  javascript
-------------------------------------+-------------------------------------

Comment (by afercia):

 > consider taking this to the W3C community and discuss a better way of
 implementing aria-live without leaving stray text in the DOM.

 I'm not sure there's anything wrong in the W3C `aria-live` implementation.
 Live regions are not necessarily meant to be ''visually hidden''. It's the
 WordPress implementation that uses invisible live regions.

 Ideally, the same content (or at least a comparable experience) should be
 served to all users. Ideally, messages sent to a live region should be
 seen and heard simultaneously, creating
 [https://inclusivedesignprinciples.org/#provide-comparable-experience
 comparable visual and aural experiences].

 Since WordPress makes live regions visually hidden, it's a WordPress
 responsibility to explore a way to make them not perceivable via regular
 navigation with a screen reader.

 As a last resort, we could always try `setTimeout()` with a relatively
 long interval: after all navigating to the end of the page source requires
 time so, for example, 10 seconds could work. Better options would be
 welcome. @stommepoes when you have a chance: any suggestions on a solid
 way to clear out the live region content?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47156#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list