Element.setAttribute()
This now follows the latest specification steps.
We were incorrectly assuming that setAttribute() could never fail here, even when passed an invalid name. Found by Domato.