Fix because DOM spec is dumb

It's so stupid that it's perfectly valid to use
boolean attributes in HTML5 (e.g. open) but that
the DOM spec does requires setting a value in the
Element.setAttribute method.

Morons.

https://developer.mozilla.org/en-US/docs/Web/API/Element.setAttribute