exports.matches matches element with a certain given context