﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9520	Shorter way for node's type check	Piotrek Koszuliński		"The current way is long and isn't minifiable at all:

{{{
node.type == CKEDITOR.NODE_TEXT || node.type == CKEDITOR.NODE_ELEMENT
}}}

We may introduce shorter version. E.g. method 'is' may be added to node:

{{{
node.is( '#doc' );
// or
node.is( [ '#text', '#element' ] );
}}}

Tokens have to be prepended with hash, because we already have is method to check element name. Also, it was used to duck typing, what would has to be fixed.

This solution's flaw is that additional check has to be done when method is called on element. Thus, we may think of other method's name specialized in type checking. E.g. node#node ({{{ node.node( 'text' ) }}}).
"	Bug	confirmed	Normal		Performance	3.0			
