Additional "space" after dictation in contenteditable div

Originator:Krizai
Number:rdar://47509771 Date Originated:January 24 2019
Status: Resolved:
Product: Product Version:
Classification: Reproducible:
 
Area:
WebKit

Summary: After entering some text using dictation additional "space" character appears before the text.


Steps to Reproduce:
Run attached project. 
It will contains webview with single div (yellow square) with contentditable="true" inside. 
Place cursor in the div and activate dictation mode on the keyboard
Say "hello"
"Hello" will appear in the div ( so far works ok)
Switch back from dictation mode to normal keyboard



Expected Results:
No additional characters before "Hello"

Actual Results:
"Hello" will become " Hello ", meaning space will appear before "Hello"

Version/Build: iPhone 6s, iOS 12.1.3

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!