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

@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