﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10215	Object Styles matching is perhaps to aggressive	Jakub Ś		"Problem can be reproduced from CKEditor 3.2.1 in both CKE 3.x and 4.x (v4).

To reproduce:
1. Paste below code into source mode
{{{
<ul style=""list-style-type:square;"">
	<li>one</li>
	<li>two
	<ul>
		<li>three</li>
	</ul>
	</li>
</ul>
}}}
2. Switch to wysiwyg and apply style for list (from styles dropdown) to outer list.
3. Click on inner list and notice that list style is selected although inner list doesn't really have it.

----

I think the problem is checkActive method in core/styles.js which checks all elements from elements path for inline and object styles:
{{{
case CKEDITOR.STYLE_OBJECT:
case CKEDITOR.STYLE_INLINE:
	var elements = elementPath.elements;
	for ( var i = 0, element; i < elements.length; i++ ) {...
}}}"	Bug	confirmed	Normal		General	3.2.1			
