Adds an attribute to a recently added nav anchor.