Opened 14 years ago
Closed 14 years ago
#6992 closed Bug (fixed)
[IE7] Selection error when typing text after table
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 )
The bug is only reproducible in and below IE7:
- Use enterMode BR;
- Load a table as initial contents:
<table> <tbody> <tr> <td> text </td> </tr> </tbody> </table>
- Put the cursor after the table and start typing
- Actual Result: JavaScript error thrown;
Attachments (2)
Change History (8)
comment:1 Changed 14 years ago by
Status: | new → confirmed |
---|
Changed 14 years ago by
Attachment: | 6992.patch added |
---|
comment:2 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Owner: | set to Garry Yao |
Status: | confirmed → review |
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.
comment:3 Changed 14 years ago by
Milestone: | → CKEditor 3.5.1 |
---|---|
Version: | → 3.5.1 (SVN - trunk) |
Changed 14 years ago by
Attachment: | 6992_2.patch added |
---|
comment:4 Changed 14 years ago by
range::setEndPoint has a serious bug around table, but it happened that we've been accidentally measuring such range from the parent element before (instead of from siblings), so the fix is to use parent as reference to measure it.
comment:5 Changed 14 years ago by
Status: | review → review_passed |
---|
comment:6 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [6343].
Regression of [6337].