I've found 2 different references for the removeAttribute method. The most common reference indicates only requiring the attribute name. The other reference includes a second, optional parameter of value 0, 1 or 2.
Given that I don't know which is canonical (or if canonical even exists), my default will almost always be to use the MDN documentation (which does not reference the optional parameter).
The optional parameter does not fail when I try it in JsFiddle, or my browser.
Can you elaborate on the issue? Is the version with the optional parameter deprecated? Was it proposed and not formally adopted? I was not able to find a definitive answer.
Weeks of coding and can save you hours of planning.