As explained in the previous comment, what line 1149 does is replace all the attributes that were in the link, and replace them with those provided (and there's none, so they're all removed).