[Webkit-unassigned] [Bug 185897] AX: setValue on contenteditable should preserve whitespace

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 24 09:59:26 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=185897

--- Comment #14 from Nan Wang <n_wang at apple.com> ---
(In reply to Darin Adler from comment #13)
> To give good advice about real cases we need to understand what else is done
> with the text besides display it. So, for example, if we need to make sure
> the text is uploaded properly to a server, different techniques might be
> required.
> 
> Generally it’s not safe to just set the innerText of an arbitrary HTML
> element--could have all sorts of different effects on different webpages and
> might simply be incompatible with what the code on those pages expect--but I
> must assume that users of screen readers are getting value out of what the
> screen reader is doing here. But since I don’t know what the value is, it’s
> hard to form an opinion about what this code should be doing.

The goal here is when users using braille input to type in values to a contenteditable we want to set the value to the corresponding element. The legacy behavior of setting innerText is problematic in some way and we plan to redesign the structure in a later timeframe.

This bug here is when the input contains some trailing whitespace, they would be ignored. We know in most cases the style won't change during editing but I can see your point. Do you have any suggestions on how to mutate the DOM in such case?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180524/03c30368/attachment.html>


More information about the webkit-unassigned mailing list