Set grammar data attr on link