Opened 11 years ago

Last modified 11 years ago

#9679 confirmed Bug

Deleting extra space below table and "unlisting" causes JS error

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6.4
Keywords: Webkit IE Cc:

Description (last modified by Jakub Ś)

Reproducible from CKEditor 3.6.4 rev. [7538]. Can also be reproduced in CKEditor 4.x.

  1. Open replacebycode sample and clear editor contents
  2. Create 3 level list
  3. Click at the end of second list item and insert table
  4. There will be space below table and last list item
  5. Put cursor in this extra space and press delete
  6. Last list item will be joined with second one. Now cursor should be at the beginning of text that previously belonged to last list item.
  7. Click list button again

Result: table and taxt that previously belonged to last list item disappears and JS error pops out:
Message: Cannot call method 'getParent' of null
Line: 1608
URI: ckeditor/_source/core/dom/range.js

Attachments (1)

2012-11-20_1405.swf (627.9 KB) - added by Jakub Ś 11 years ago.
Viedo showing how to reproduce

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by Jakub Ś

Attachment: 2012-11-20_1405.swf added

Viedo showing how to reproduce

comment:1 Changed 11 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 11 years ago by Jakub Ś

Description: modified (diff)

comment:3 Changed 11 years ago by Jakub Ś

Keywords: IE added

I was able to reproduce this issue in IE and Webkit. In Firefox and Opera HTML result is the same i.e. table is removed but no error is thrown.

comment:4 Changed 11 years ago by Jakub Ś

JS error:
Message: Cannot call method 'getParent' of null
URI: /ckeditor4/core/dom/range.js Line: 1523

This ticket looks very similar to #10400. Ticket #10400 throws same error in same line but in every browser.
HTML result for this ticket however is disturbing and IMHO suggests silent fail in 2 other browsers thus I think that both tickets have same fix.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy