summaryrefslogtreecommitdiffstats
path: root/dom/webidl
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-07-17 12:14:56 +0200
committerGitHub <noreply@github.com>2018-07-17 12:14:56 +0200
commit8eb01c2ce4960a6a908bb2efdd48f141bf548c92 (patch)
tree49640df1fd38269c64b12f45fff362b43fb08f6e /dom/webidl
parent0cb3a0ccf18b2f763b856295c7cfa0a0c6b8941e (diff)
parentd4c0def3b80d6dd4359985e400a7282ce198c228 (diff)
downloadUXP-8eb01c2ce4960a6a908bb2efdd48f141bf548c92.tar
UXP-8eb01c2ce4960a6a908bb2efdd48f141bf548c92.tar.gz
UXP-8eb01c2ce4960a6a908bb2efdd48f141bf548c92.tar.lz
UXP-8eb01c2ce4960a6a908bb2efdd48f141bf548c92.tar.xz
UXP-8eb01c2ce4960a6a908bb2efdd48f141bf548c92.zip
Merge pull request #642 from janekptacijarabaci/dom_element_toggleAttribute_1
Add support for Element.toggleAttribute()
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/Element.webidl2
1 files changed, 2 insertions, 0 deletions
diff --git a/dom/webidl/Element.webidl b/dom/webidl/Element.webidl
index ca5f1b35c..97eb4ffe0 100644
--- a/dom/webidl/Element.webidl
+++ b/dom/webidl/Element.webidl
@@ -41,6 +41,8 @@ interface Element : Node {
[Pure]
DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
[Throws]
+ boolean toggleAttribute(DOMString name, optional boolean force);
+ [Throws]
void setAttribute(DOMString name, DOMString value);
[Throws]
void setAttributeNS(DOMString? namespace, DOMString name, DOMString value);