Opened 15 years ago

Last modified 15 years ago

#6992 closed Bug

[IE7] Selection error when typing text after table — at Version 2

Reported by: Garry Yao Owned by: Garry Yao
Priority: Normal Milestone: CKEditor 3.5.1
Component: Core : Selection Version: 3.5.1
Keywords: IE Cc:

Description (last modified by Garry Yao)

The bug is only reproducible in and below IE7:

  1. Use enterMode BR;
  2. Load a table as initial contents:
    <table>
    	<tbody>
    	<tr>
    		<td>
    			text
    		</td>
    	</tr>
    	</tbody>
    </table>
    
  3. Put the cursor after the table and start typing
  • Actual Result: JavaScript error thrown;

Change History (3)

comment:1 Changed 15 years ago by Garry Yao

Status: newconfirmed

Regression of [6337].

Changed 15 years ago by Garry Yao

Attachment: 6992.patch added

comment:2 Changed 15 years ago by Garry Yao

Description: modified (diff)
Owner: set to Garry Yao
Status: confirmedreview

It looks like an IE bug when measuring the selection range, confirm it only happens with newly inserted text nodes after a table element at the end of document.

The patch fix the error when doesn't guarantee the correctness of range measurement in this case, while considering it's quite a edge case, we could work later to check a complete solution.

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