Re: [whatwg/dom] Consider boolean interface for properties (#461)

I agree this is something I've wanted for a long time, although properly using reflected properties (like `el.hidden = false`) works pretty well.

If we were to do a new API, my preference would be `el.toggleAttribute(attributeName, bool)` (where if the `bool` is omitted, it toggles it away from its current state).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/461#issuecomment-303167207

Received on Monday, 22 May 2017 17:30:39 UTC