Chrome Version: 64.0.3282.0 (Developer Build) unknown (32-bit)
OS: Android 8.0.0
What steps will reproduce the problem?
(1) Make sure Gboard is installed.
(2) Go to editpad.org and tap in the text area.
(3) Use Gboard's voice input and dictate something like "hello new paragraph hello new paragraph hello".
(4) Tap on a grey underlined word and apply a suggestion.
What is the expected result?
The suggestion should be applied properly.
What happens instead?
The suggestion inserts duplicate text because the suggestions span multiple paragraphs, but applying the suggestion only removes the existing text in the current paragraph.
The root cause of the issue is that DocumentMarkers cannot span multiple DOM nodes, so they get split up in this case.
Note: this bug was exposed by the fix I'm working on for crbug.com/784039 .
Comment 1 by bugdroid1@chromium.org
, Dec 6 2017