added option to filter on a specific element attribute