Fix attribute removal; Remove links if no href, id or name