Ticket #4196 (closed Bug: fixed)

Opened 8 months ago

Last modified 4 months ago

[chrome] List gets destoryed after repetitive type changes

Reported by: tobiasz.cudnik Owned by: garry.yao
Priority: Normal Milestone: CKEditor 3.1
Component: Core : Lists Version: SVN (CKEditor)
Keywords: Confirmed Review+ Cc:

Description

In chromium, list gets destoryed after repetitive type changes. Refer to attached video TC.

Attachments

4196.ogg Download (344.4 KB) - added by tobiasz.cudnik 8 months ago.
4196.patch Download (2.0 KB) - added by garry.yao 4 months ago.

Change History

Changed 8 months ago by tobiasz.cudnik

Changed 4 months ago by garry.yao

  • keywords Confirmed added; webkit removed
  • version set to SVN (CKEditor)
  • component changed from General to Core : Lists

With the help from Tobias, I was managed to find an even easier way to reproduce:

  1. Load the following content with selection:
    <ul>
    	<li>
    		a
    		<ol>
    			<li>
    				b^
    				<ul>
    					<li>
    						c</li>
    				</ul>
    			</li>
    		</ol>
    	</li>
    </ul>
    
    
  2. Press 'Numbered List' button and check the DOM snapshot;
  • Expected Result:
    <ul>
    	<li>
    		a</li>
    	<li>
    		b
    		<ul>
    			<li>
    				c</li>
    		</ul>
    	</li>
    </ul>
    
  • Actual Result:
    <ul>
    	<li>
    		a
            </li>
    	<li>
    		b
    	</li>
    		<ul>
    			<li>
    				c</li>
    		</ul>
    </ul>
    

So it's a general list bug instead of a webkit specific one.

Changed 4 months ago by garry.yao

  • keywords Review? added
  • owner set to garry.yao
  • status changed from new to assigned

I've expected the wrong output on previous comment, the correct result should be what we have in v2:

<ul>
	<li>
		a</li>
</ul>
<p>
	b</p>
<ul>
	<li>
		c</li>
</ul>

Changed 4 months ago by garry.yao

I hope it make sense also in the patch to trim text before <br>.

Changed 4 months ago by garry.yao

Changed 4 months ago by fredck

  • keywords Review+ added; Review? removed

Changed 4 months ago by garry.yao

  • status changed from assigned to closed
  • resolution set to fixed

Ticket Test added at :
 http://ckeditor.t/tt/4196/1.html.
Fixed with [4523].

Note: See TracTickets for help on using tickets.