Bug 134823

Summary: AX: Screen reader reads incomplete sentence in textarea with white-space set to "nowrap"
Product: WebKit Reporter: Philip Peitsch <philip.peitsch>
Component: AccessibilityAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.9   
Attachments:
Description Flags
Reproduction HTML page none

Description Philip Peitsch 2014-07-10 19:31:11 PDT
Using the attached file, select all the text in the first textarea and instruct OSX to read it using the built-in Text to Speech system (Under settings, Dictation & Speech). The voice will only say "this is an ex", dropping the last part of the sentence.

This seems to be a result of the textarea having collapsed whitespace characters within the value, as when the white-space value is changed to pre (in the second textarea), the voice will read the full sentence.

This affects Safari Version 7.0.5 (9537.77.4) on OSX 10.9, and seems to affect some earlier versions as well.
Comment 1 Radar WebKit Bug Importer 2014-07-10 19:31:24 PDT
<rdar://problem/17634593>
Comment 2 Philip Peitsch 2014-07-10 19:31:58 PDT
Created attachment 234739 [details]
Reproduction HTML page