[Webkit-unassigned] [Bug 288517] Trailing and leading tab chars (\t) are trimmed on a div with contenteditable="plaintext-only"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 27 17:30:48 PST 2025


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

--- Comment #4 from Karl Dubost <karlcow at apple.com> ---
So about my comment on what the spec is saying: Masayuki Nakano replied correctly
Chrome has a bug.

https://bugzilla.mozilla.org/show_bug.cgi?id=1950671#c3

https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute
> 4. If node is a Text node, then for each CSS text box produced by node, in content order, compute the text of the box after application of the CSS 'white-space' processing rules and 'text-transform' rules, set items to the list of the resulting strings, and return items. The CSS 'white-space' processing rules are slightly modified: collapsible spaces at the end of lines are always collapsed, but they are only removed if the line is the last line of the block, or it ends with a br element. Soft hyphens should be preserved.


Probably there is a need for a WPT covering this 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/20250228/8dccde35/attachment.htm>


More information about the webkit-unassigned mailing list