Only consider elements that have these attributes in them.