﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16738	"Edge issue: script error on editor.applyStyle() ""Unable to get property 'compare' of undefined or null reference"""	zoarif		"== Steps to reproduce ==

1. I have custom style link in my editor that I try to apply using editor.applyStyle(style)and my style is:
{{{
const linkStyle: CKEDITOR.style = new CKEDITOR.style({
	name: 'link',
	element: 'a',
	type: CKEDITOR.STYLE_INLINE,
	attributes: {'href': data, 'target': '_blank'}
 });
}}}
2. In edge, when I call this method, an exception gets thrown 
""Unable to get property 'compare' of undefined or null reference""
3. I see that its coming from  checkSelectionChange() method:

...

at this line
{{{
var currentPath = this.elementPath();
	if ( !currentPath.compare( this._.selectionPreviousPath ) ) {
...
}}}
currentPath is undefined here, it tries to call compare and an exception gets thrown. 

== Expected result ==
Style should get applied.

== Actual result ==
Error gets thrown 'Unable to get property 'compare' of undefined or null reference'

== Other details (browser, OS, CKEditor version, installed plugins) ==
This bug is specific to Microsoft Edge 38.14393.0.0. Does not repro in IE and chrome. 
"	Bug	pending	Normal		General	4.6.0			
