Ticket #8106 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

IE8 : Javascript error when deleting in bulleted list

Reported by: hanjo Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: IE8 Cc:

Description

When deleting a row in a bulleted list CK throws a Javascript error with message 'null' is null or not an object on row.

Steps to reproduce the error:

  • Open up the demo page http://ckeditor.com/demo
  • Remove content
  • Click on Insert/Remove Bulleted List
  • Type some text and hit Enter, create at least two rows
  • Select the first row and create a link
  • Put the cursor in front of the link
  • Hit Enter to create a new row
  • Press up to move to the first row
  • Press delete to move the content on the second row to the first row

Expected here is that the link will be moved up to the first row and merge the first and the second row. But instead the cursor is moved down to the second row. I don't know if this is a bug as well?

  • Press Backspace to remove the second row (the list will be split into to lists)
  • Press Backspace again and the cursor will be moved to the first row
  • Press delete to move up the link to the first row
  • Click on Insert/Remove Bulleted List to remove the list

The link will be removed and the Bulleted list seems to be created as it supposed but an Javascript Error will be thrown in IE. I have tried the same thing in FF 4 with no problem at all.

Sorry if its many steps but I tried to do it so easy I could.

Change History

comment:1 Changed 3 years ago by j.swiderski

  • Keywords IE8 added; IE removed
  • Status changed from new to confirmed
  • Version changed from 3.6.1 to 3.0

A little bit simplified TC:

  1. Paste the following code:
    <ul>
    	<li>
    		&nbsp;</li>
    	<li>
    		<a href="http://o2.pl">item1</a></li>
    	<li>
    		item2</li>
    </ul>
    
  2. Place the cursor in the first list-item and hit delete

Expected here is that the link will be moved up to the first row and merge the first and the second row. But instead the cursor is moved down to the second row. I don't know if this is a bug as well?

  1. Press Backspace to remove the second row (the list will be split into to lists)
  2. Press Backspace again and the cursor will be moved to the first row
  3. Press delete to move up the link to the first row (the link is not moved)
  4. Click on Insert/Remove Bulleted List to remove the list

The link will be removed and the Bulleted list seems to be created as it supposed but an JavaScript Error will be thrown in IE8. I have tried the same thing in FF 4 with no problem at all.

Reroducible in IE8 from CKEditor 3.0

The JS error is:
Message: 'null' is null or not an object
Line: 1568
Char: 4
URI: /3.6.1/ckeditor/_source/core/dom/range.js

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy