Implement Element.toggleAttribute
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. Spec https://dom.spec.whatwg.org/#dom-element-toggleattribute Intent to Implement and Ship https://groups.google.com/a/chromium.org/d/msg/blink-dev/mAWBTaANvmE/OgaCRH04BAAJ Bug: 854960 Change-Id: Iab8a1a97dd4e2f8b377bcf590401699f9013aa8a Reviewed-on: https://chromium-review.googlesource.com/1111761 Commit-Queue: Rakina Zata Amni <rakina@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Hayato Ito <hayato@chromium.org> Cr-Commit-Position: refs/heads/master@{#570348}
Showing
Please register or sign in to comment