<?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>57150</bug_id>
          
          <creation_ts>2011-03-26 07:36:43 -0700</creation_ts>
          <short_desc>Deleteing lists in contentEditable/designMode produces DIV element</short_desc>
          <delta_ts>2012-05-01 23:43:13 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://tinymce.moxiecode.com/safari/delete_list.htm</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>6627</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Moxiecode Systems">spam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ayg</cc>
    
    <cc>rniwa</cc>
    
    <cc>styu007</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>373897</commentid>
    <comment_count>0</comment_count>
    <who name="Moxiecode Systems">spam</who>
    <bug_when>2011-03-26 07:36:43 -0700</bug_when>
    <thetext>Description:
Deleteing lists in contentEditable/designMode produces DIV element it should produce an empty area or a BR element to place the caret.

Steps to reproduce:
1. Open the attached URL.
2. Place caret behind the X inside editable area below.
3. Press backspace twice.
4. Click the Dump HTML link observe the HTML produced.

Expected results:
An empty editable area or BR element.

Actual results:
&lt;div&gt;&lt;br&gt;&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453861</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-19 09:05:57 -0700</bug_when>
    <thetext>The specification says that this should produce &lt;p&gt;&lt;br&gt;&lt;/p&gt;:

http://aryeh.name/spec/editing/editing.html#the-delete-command

It&apos;s the case &quot;If node is an li or dt or dd and is the first child of its parent, and offset is zero:&quot;.  The &quot;fix disallowed ancestors&quot; step below that will turn the &lt;li&gt; into a &lt;p&gt; if it&apos;s not the child of an &lt;ol&gt;/&lt;ul&gt;.  This is in keeping with the spec&apos;s philosophy (adopted from IE/Opera) that every line should be wrapped in a &lt;p&gt; or other &quot;single-line container&quot; (as I chose to call them).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>614030</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2012-05-01 23:43:13 -0700</bug_when>
    <thetext>This is working as expected although it should be &lt;p&gt;&lt;br&gt;&lt;/p&gt; instead of &lt;div&gt;&lt;br&gt;&lt;/div&gt;. But that&apos;s a separate issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>