Allow getAscendant( 'div[attribute]' )

Allowing attribute check for elements gives a possibility to match elements with specific attribute. This is handy for creating complex custom templates and accessing them later on.

I'm creating templatesExtended plugin which relies on this behavior.

This only supports check for one attribute.