<?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>23507</bug_id>
          
          <creation_ts>2009-01-23 11:39:53 -0800</creation_ts>
          <short_desc>pressing enter inside a list item doesn&apos;t create new list item</short_desc>
          <delta_ts>2017-07-18 08:29:48 -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>PC</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Deepak Jindal">deepak.jindal</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ayg</cc>
    
    <cc>eric</cc>
    
    <cc>jindal</cc>
    
    <cc>jparent</cc>
    
    <cc>marcosalmeida</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106779</commentid>
    <comment_count>0</comment_count>
    <who name="Deepak Jindal">deepak.jindal</who>
    <bug_when>2009-01-23 11:39:53 -0800</bug_when>
    <thetext>Take the following html in which the list item is inside a div:

&lt;ul&gt;&lt;li&gt;&lt;div&gt;foobar&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;

Place your cursor between foo and bar and press enter. A new list item should be created.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126915</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-06-19 01:20:17 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Take the following html in which the list item is inside a div:
&gt; 
&gt; &lt;ul&gt;&lt;li&gt;&lt;div&gt;foobar&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&gt; 
&gt; Place your cursor between foo and bar and press enter. A new list item should
&gt; be created.
&gt; 

I tried three different browsers (Firefox 3, MSIE 7, and Safari).  Only Firefox inserts new list.  Because div is a block element, I don&apos;t think inserting a new line within a div shouldn&apos;t be splitting the div.  On the other hand, when I&apos;m at the end of &quot;foobar&quot;, I feel like I should be able to start new item by pressing enter (MSIE and WebKit doesn&apos;t let you create new list item at all.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126916</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-06-19 01:23:22 -0700</bug_when>
    <thetext>Sorry, I submitted the comment prematurely with lots of typo.  Here&apos;s a slightly better version of it:

I tried three different browsers (Firefox 3, MSIE 7, and Safari), and only Firefox inserted a new list item.  Because div is a block element, I don&apos;t think inserting a new line within a div should be splitting the div.  On the other hand, when I&apos;m at the end of &quot;foobar&quot;, I feel like I should be able to insert a new list item by pressing enter (MSIE and WebKit don&apos;t let you create new list item at all.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>136821</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2009-08-03 16:01:23 -0700</bug_when>
    <thetext>Apparently, MSIE8 DOES create new list item.  Perhaps they have changed the behavior since MSIE7 or that I didn&apos;t test well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151019</commentid>
    <comment_count>4</comment_count>
    <who name="Marcos Almeida">marcosalmeida</who>
    <bug_when>2009-09-29 13:22:47 -0700</bug_when>
    <thetext>This is still an issue and affects Google properties.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>453990</commentid>
    <comment_count>5</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-19 12:31:38 -0700</bug_when>
    <thetext>Currently my spec agrees with WebKit, but I agree with comment #0 that splitting the list item makes more sense.  I&apos;ve filed a spec bug:

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13841</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>