Seems like the attribute selector fails in case the value of the attribute is blank.
PHP Code:
<div crscmp="" ></div
PHP Code:
Ext.select("[crscmp]").first().is("[crscmp]")false 
If the attribute has any value, the call above returns true