﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5007	IE Standards Mode: Incorrect selection & range produced when clicking to the right of a <br />	Scott McNaught		"For the first 500ms after clicking to the right of a <br />, IE produces a range at the wrong spot.

To see the problem, edit plugins/selection/plugin.js.
In IEs getNative(), add: this.document.$.selection.createRange().select(); so it looks like:

{{{
CKEDITOR.env.ie ?
	function()
	{
		this.document.$.selection.createRange().select();
		return this._.cache.nativeSel || ( this._.cache.nativeSel = this.document.$.selection );
	}
}}}


Then open ckeditor, and set the HTML to:

{{{
<p>Line 1<br />
Line 2</p>
}}}

Click to the right of the Line 1 / the <br />.  The caret will move to the start of Line 2, thus proving that the IE range created is wrong.

Some notes:[[BR]]
- 500ms after the click, calling getRange() code will produce the range at the correct position.[[BR]]
- The range produced is definately wrong and at Line 2.  In getBoundaryInformation(), the compareEndPoints() check will show that the selection is after the <br />[[BR]]
- The issue is also present after the editor loses focus, and regains it (ie - when using a RichCombo).[[BR]]
- This issue doesnt happen when focussing using right click / context menu.[[BR]]
- The issue flows through and makes the w3 range wrong too"	Bug	closed	Normal		General		expired		
