<?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>94856</bug_id>
          
          <creation_ts>2012-08-23 14:33:15 -0700</creation_ts>
          <short_desc>Can&apos;t delete first and last characters of a root editable element with display: table</short_desc>
          <delta_ts>2022-08-30 20:17:00 -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>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>arpitabahuguna</cc>
    
    <cc>bfulgham</cc>
    
    <cc>brandonstewart</cc>
    
    <cc>enrica</cc>
    
    <cc>eric</cc>
    
    <cc>leviw</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>703381</commentid>
    <comment_count>0</comment_count>
      <attachid>160250</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-08-23 14:33:15 -0700</bug_when>
    <thetext>Created attachment 160250
Demonstrates the bug

When an root editable element has display:table, we can&apos;t delete the first character, and attempting to delete the last character removes the focus from the element.

http://crbug.com/107366</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1894968</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-30 15:48:43 -0700</bug_when>
    <thetext>I am able to reproduce this bug in Safari Technical Preview 152 where I cannot delete &quot;T&quot; within contendeditable, if I place caret after that and press &quot;Delete&quot; / &quot;Backspace&quot; while if I select whole text and delete or take caret from end and do &quot;Delete&quot; / &quot;Backspace&quot; to remove whole, it loses focus.

It was fixed in Chrome in this commit:

https://src.chromium.org/viewvc/blink?view=revision&amp;revision=162687

In case of Chrome Canary 107, it still loses &quot;Focus&quot; if I delete starting from end but it has &quot;T&quot; as deletable.

Firefox Nightly 107 behaves as expected and keep focus and make first character deletable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895040</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-30 20:17:00 -0700</bug_when>
    <thetext>&lt;rdar://problem/99364748&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>160250</attachid>
            <date>2012-08-23 14:33:15 -0700</date>
            <delta_ts>2012-08-23 14:33:15 -0700</delta_ts>
            <desc>Demonstrates the bug</desc>
            <filename>issue107366.html</filename>
            <type>text/html</type>
            <size>260</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8Ym9keT4KPGRpdiBzdHlsZT0iZGlzcGxheTogdGFibGUi
IGNvbnRlbnRlZGl0YWJsZT10cnVlPlRyeSBkZWxldGluZyBjaGFyYWN0ZXJzIGF0IHRoZSBiZWdp
bm5pbmcgYW5kIHRoZSBlbmQuPC9kaXY+CjxwPllvdSBjYW4ndCBkZWxldGUgdGhlIGZpcnN0IGNo
YXJhY3RlciwgYW5kIHlvdSBsb3NlIGZvY3VzIGlmIHlvdSB0cnkgdG8gZGVsZXRlIHRoZSBsYXN0
IGNoYXJhY3Rlci48L3A+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>