nil attr-value will cause removeAttribute to be called.