Re: Intent to ship: Element.toggleAttribute

2018-06-27 Thread Boris Zbarsky
On 6/27/18 7:14 PM, Jonathan Kingston wrote: Is this feature enabled by default in sandboxed iframes? N/A It is, yes. -Boris ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Intent to ship: Element.toggleAttribute

2018-06-27 Thread Jonathan Kingston
Many JavaScript libraries exist to toggle attributes in the DOM. By moving this to the web platform we will simplify the boilerplate developers have to use. This method will behave similar to Element.classList.toggle, this will allow developers to pass an argument of the attribute to toggle: elem