﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2767	plug-in:basicstyle AND elementpath incorrect style range detection	Garry Yao	Garry Yao	"=== Description ===
Style and element path detection on certain selection are incorrect.

=== Procedures ===
 1. Open  an editor instance;
 1. Make selection as follow: [[BR]]
 {{{

 <p> This is some <strong>sample ^text</strong>. You are using^ <a href=""http://www.fckeditor.net/"">FCKeditor</a>.</p>

 }}} 
 1. Check the '''Bold''' style status
 * Expected: style status should be off;
 * Actual: style status is on;

=== Test Cases ===
Test cases created with :

 1. Test select start partial in a bold style and end in non-style.[[BR]]
  * Original document:[[BR]]
{{{

<p> level1<strong>le^vel2</strong>lev^el1</strong></p>

}}}
  * Reference results
   * FCKEditor2.6.3 [[BR]]  Bold style command status in ''on''.
   * TinyMCE3.2.1 [[BR]] Bold style command status in ''off'', element path is ''body -> p''.
  * Expected Result [[BR]] Bold style command status in ''off'', element path is ''body -> p''.
 1. Test select start partial in a bold style, select through non-style texts and  end in bold style.[[BR]]
  * Original document: [[BR]]
{{{

<p> level1<strong>le^vel2</strong>level1<strong>le^vel2</strong></strong></p>

}}}
  * Reference results
   * FCKEditor2.6.3 [[BR]]  Bold style command status in ''on''.
   * TinyMCE3.2.1 [[BR]] Bold style command status in ''off'', element path is ''body -> p''.
  * Expected Result [[BR]] Bold style command status in ''off'', element path is ''body -> p''.
 1. Test select start partial in a bold style which is in a '''td''', selection goes through some other non-style text in cells, and  end partial in a bold style in a '''td''' again.
   * Original document:[[BR]]
{{{

<p>
<table>
	<tbody>
		<tr>
			<td><strong>c^ell1</strong></td>
			<td>cell2</td>
		</tr>
		<tr>
			<td>cell3</td>
			<td><strong>cell^4</strong></td>
		</tr>
	</tbody>
</table>
</p>

}}}
  * Reference results
   * FCKEditor2.6.3 [[BR]]  Bold style command status in ''on''.
   * TinyMCE3.2.1 [[BR]] Bold style command status in ''off'', element path is ''body -> table -> tbody''. 
  * Expected Result [[BR]] Bold style command status in ''off'', element path is ''body -> table -> tbody''. "	Bug	review_failed	Normal		Core : Styles	3.0 Beta 2		Confirmed	
