Added missing attribute checks for the link tag.