Boolean HTML Attributes
(Because of some framework code I use, not calling setAttribute(), or calling removeAttribute() is difficult.) Then I would submit that the framework code needs fixing, or dumping. You can’t setAttribute to unset an attribute, by design. Any solution you found involving out-of-band values like ‘null’, if it happened to work in any particular browser, would … Read more