- From: Andrea Giammarchi <notifications@github.com>
- Date: Tue, 19 Jun 2018 04:23:27 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 19 June 2018 11:23:51 UTC
@jonathanKingston not sure if this helps but I've implemented the `toggleAttribute(attr[, force])` and I'm validating it via: ```js var button = create('button'); button.toggleAttribute('disabled'); console.assert(button.disabled); button.toggleAttribute('disabled'); console.assert(!button.disabled); button.toggleAttribute('disabled', false); console.assert(!button.disabled); button.toggleAttribute('disabled'); console.assert(button.disabled); button.toggleAttribute('disabled', true); console.assert(button.disabled); button.toggleAttribute('disabled', false); console.assert(!button.disabled); button.toggleAttribute('disabled', true); console.assert(button.disabled); ``` -- 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-398365188
Received on Tuesday, 19 June 2018 11:23:51 UTC