NEW228645
White-space in span element with inline-block style gets eaten-up in innerText and clipboard text
https://bugs.webkit.org/show_bug.cgi?id=228645
Summary White-space in span element with inline-block style gets eaten-up in innerTex...
sukii
Reported 2021-07-30 08:28:58 PDT
Created attachment 434631 [details] A sample showing the white-space bug Unlike Firefox browser, all the Webkit browsers seem to eat-up white-space in span tag if it carries a inline-block style. <div><span>Hello</span><span style="display:inline-block; width:10px;"> </span><span>World!</span></div>
Attachments
A sample showing the white-space bug (266 bytes, text/html)
2021-07-30 08:28 PDT, sukii
no flags
sukii
Comment 1 2021-07-30 08:34:03 PDT
The white-space shows-up fine in the browser view, but disappears from the clipboard selection and from the innerText property, whereas it shows-up fine in innerHTML property.
Radar WebKit Bug Importer
Comment 2 2021-08-06 08:29:16 PDT
Karl Dubost
Comment 3 2024-06-10 05:42:45 PDT
Safari Tech Preview: HelloWorld! (Release 196 (Safari 17.4, WebKit 619.1.16)) Chrome Canary: HelloWorld! (Version 127.0.6522.0) Firefox Nightly : Hello World! (128.0a1 (2024-06-05))
Note You need to log in before you can comment on or make changes to this bug.