Opened 12 years ago
Closed 12 years ago
#9535 closed Bug (fixed)
[IE10] Wrong cursor position after enter BR
Reported by: | Garry Yao | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.0 |
Component: | UI : Enter Key | Version: | 3.0 |
Keywords: | IE | Cc: | michiel.beijen@… |
Description
- Load any sample page with enter mode as BR;
- Clear all content, type some chars
- Enter key pressed twice
- Actual: Cursor moves to the second line;
- Expected: Cursor moves to the third line;
Change History (8)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | new → review |
Opened t/9535 for review.
comment:3 Changed 12 years ago by
The ticket tc on IE10, depends on the result of retrieving the following selection range:
foo <br />^ bar
Which incorrectly returns the range anchored before BR element.
We had conversation before regard switching to W3C DOM selection, but had been worried about the stabality.
For now the suite of selection test has established, it's less risky to consider this change, at least for IE10.
The patch proposed this change for IE10 only, as it eliminates several selection regard quirks like the ticket tc, the tests results are passing and I did some manual tests to verify it.
comment:4 Changed 12 years ago by
It's revealed on #9535 another IE bug when using old MS selection API, once BR is contained inside of text selection from right-to-left, this time on IE9 as well, so it would be well worthy to consider IE9 on subject of this change as well.
comment:5 Changed 12 years ago by
Cc: | michiel.beijen@… added |
---|
comment:6 Changed 12 years ago by
The selection change is masterised, now the ticket branch contains only the patch for fix inside of <pre>.
comment:7 Changed 12 years ago by
Status: | review → review_passed |
---|
I couldn't test IE10, but I haven't found regressions on other browsers.
comment:8 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Besides, enter key in preformatted is also partially broken as cursor is not moving to the next line.