Contact emails
Spec
https://dom.spec.whatwg.org/#dom-element-toggleattribute
Discussion: https://github.com/whatwg/dom/issues/461
Summary
Add a new method Element.toggleAttribute(string qualifiedName, optional bool force) that allow toggling the existence of an element’s attribute, similar to Element.classList.toggle.
Motivation
Developers often wants to control existence of attributes of an element, but need to do different actions on boolean vs non-boolean attributes. Some libraries provide convenience functions that are based upon the type or the attribute being set.
Risks
Interoperability and Compatibility
Low
Edge: Public support https://github.com/whatwg/dom/issues/461#issuecomment-398206390
Firefox: In development https://bugzilla.mozilla.org/show_bug.cgi?id=1469592
Safari: No signals
Web developers: Positive, seen on github discussion above
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Is this feature fully tested by web-platform-tests?
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5676852374929408
Requesting approval to ship?
Yes
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACPC1r68VPpRk%3D%3D0T3p7n3abwzvnat_OLO2ozNW4su1CgjEn7w%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFpjS_0a0cvcYh3th5vf7w0RT%3DimTASLaJU4J-4zdwxQcoeA1A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_xrMTMjQ-axMAAVz5%2BUR5O6vXSweZx5qnH-b9oLCpVJw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGH7WqGt%3DKXC9Scieb%3DBXbJPZKrrCD29xUP990rjnOFonDuezA%40mail.gmail.com.