Restrict directive to attributes