Restricting qr directive to attributes.