Bug 1340027 - Part 1: Add DOM CEReactions annotation.

Tag UXP Issue #1344
This commit is contained in:
Gaming4JC 2020-01-04 20:41:41 -05:00 • committed by Roy Tam
commit 0ff8d62963
9 changed files with 42 additions and 42 deletions

View file

@ -25,9 +25,9 @@ interface Element : Node {
[Pure]
readonly attribute DOMString tagName;
[Pure]
[CEReactions, Pure]
attribute DOMString id;
[Pure]
[CEReactions, Pure]
attribute DOMString className;
[Constant, PutForwards=value]
readonly attribute DOMTokenList classList;
@ -40,15 +40,15 @@ interface Element : Node {
DOMString? getAttribute(DOMString name);
[Pure]
DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
[Throws]
[CEReactions, Throws]
boolean toggleAttribute(DOMString name, optional boolean force);
[Throws]
[CEReactions, Throws]
void setAttribute(DOMString name, DOMString value);
[Throws]
[CEReactions, Throws]
void setAttributeNS(DOMString? namespace, DOMString name, DOMString value);
[Throws]
[CEReactions, Throws]
void removeAttribute(DOMString name);
[Throws]
[CEReactions, Throws]
void removeAttributeNS(DOMString? namespace, DOMString localName);
[Pure]
boolean hasAttribute(DOMString name);
@ -72,7 +72,7 @@ interface Element : Node {
[Pure]
HTMLCollection getElementsByClassName(DOMString classNames);
[Throws, Pure]
[CEReactions, Throws, Pure]
Element? insertAdjacentElement(DOMString where, Element element); // historical
[Throws]
@ -137,12 +137,12 @@ interface Element : Node {
// Obsolete methods.
Attr? getAttributeNode(DOMString name);
[Throws]
[CEReactions, Throws]
Attr? setAttributeNode(Attr newAttr);
[Throws]
[CEReactions, Throws]
Attr? removeAttributeNode(Attr oldAttr);
Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName);
[Throws]
[CEReactions, Throws]
Attr? setAttributeNodeNS(Attr newAttr);
[ChromeOnly]