<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>228645</bug_id>
          
          <creation_ts>2021-07-30 08:28:58 -0700</creation_ts>
          <short_desc>White-space in span element with inline-block style gets eaten-up in innerText and clipboard text</short_desc>
          <delta_ts>2024-06-10 05:42:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="sukii">skvenkat</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>karlcow</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1780798</commentid>
    <comment_count>0</comment_count>
      <attachid>434631</attachid>
    <who name="sukii">skvenkat</who>
    <bug_when>2021-07-30 08:28:58 -0700</bug_when>
    <thetext>Created attachment 434631
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.

&lt;div&gt;&lt;span&gt;Hello&lt;/span&gt;&lt;span style=&quot;display:inline-block; width:10px;&quot;&gt; &lt;/span&gt;&lt;span&gt;World!&lt;/span&gt;&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1780802</commentid>
    <comment_count>1</comment_count>
    <who name="sukii">skvenkat</who>
    <bug_when>2021-07-30 08:34:03 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782492</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-06 08:29:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/81618283&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2040592</commentid>
    <comment_count>3</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2024-06-10 05:42:45 -0700</bug_when>
    <thetext>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))</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>434631</attachid>
            <date>2021-07-30 08:28:58 -0700</date>
            <delta_ts>2021-07-30 08:28:58 -0700</delta_ts>
            <desc>A sample showing the white-space bug</desc>
            <filename>tiny.html</filename>
            <type>text/html</type>
            <size>266</size>
            <attacher name="sukii">skvenkat</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0idXRmLTgi
PgogICAgPHN0eWxlPgogICAgICAuaWIgewoJICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7CgkgIHdp
ZHRoOiAxMHB4OwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvaGVhZD4KICA8Ym9keT4KICAgIDxk
aXY+PHNwYW4+SGVsbG88L3NwYW4+PHNwYW4gY2xhc3M9ImliIj4gPC9zcGFuPjxzcGFuPldvcmxk
ITwvc3Bhbj4KICAgIDwvZGl2PgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>