mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Bug 1340027 - Part 1: Add DOM CEReactions annotation.
Tag UXP Issue #1344
This commit is contained in:
parent
dd7fa403a8
commit
0ff8d62963
9 changed files with 42 additions and 42 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
interface Attr : Node {
|
||||
readonly attribute DOMString localName;
|
||||
[SetterThrows]
|
||||
[CEReactions, SetterThrows]
|
||||
attribute DOMString value;
|
||||
|
||||
[Constant]
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@
|
|||
|
||||
[NoInterfaceObject]
|
||||
interface ChildNode {
|
||||
[Throws, Unscopable]
|
||||
[CEReactions, Throws, Unscopable]
|
||||
void before((Node or DOMString)... nodes);
|
||||
[Throws, Unscopable]
|
||||
[CEReactions, Throws, Unscopable]
|
||||
void after((Node or DOMString)... nodes);
|
||||
[Throws, Unscopable]
|
||||
[CEReactions, Throws, Unscopable]
|
||||
void replaceWith((Node or DOMString)... nodes);
|
||||
[Unscopable]
|
||||
[CEReactions, Unscopable]
|
||||
void remove();
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -14,17 +14,17 @@ interface DOMTokenList {
|
|||
readonly attribute unsigned long length;
|
||||
getter DOMString? item(unsigned long index);
|
||||
boolean contains(DOMString token);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
void add(DOMString... tokens);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
void remove(DOMString... tokens);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
void replace(DOMString token, DOMString newToken);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
boolean toggle(DOMString token, optional boolean force);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
boolean supports(DOMString token);
|
||||
[SetterThrows]
|
||||
[CEReactions, SetterThrows]
|
||||
attribute DOMString value;
|
||||
stringifier DOMString ();
|
||||
iterable<DOMString?>;
|
||||
|
|
|
|||
|
|
@ -65,9 +65,9 @@ interface Document : Node {
|
|||
[NewObject, Throws]
|
||||
ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
|
||||
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Node importNode(Node node, optional boolean deep = false);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Node adoptNode(Node node);
|
||||
|
||||
[NewObject, Throws]
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -6,17 +6,17 @@
|
|||
[LegacyUnenumerableNamedProperties]
|
||||
interface NamedNodeMap {
|
||||
getter Attr? getNamedItem(DOMString name);
|
||||
[Throws, BinaryName="setNamedItemNS"]
|
||||
[CEReactions, Throws, BinaryName="setNamedItemNS"]
|
||||
Attr? setNamedItem(Attr arg);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Attr removeNamedItem(DOMString name);
|
||||
|
||||
getter Attr? item(unsigned long index);
|
||||
readonly attribute unsigned long length;
|
||||
|
||||
Attr? getNamedItemNS(DOMString? namespaceURI, DOMString localName);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Attr? setNamedItemNS(Attr arg);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Attr removeNamedItemNS(DOMString? namespaceURI, DOMString localName);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -57,21 +57,21 @@ interface Node : EventTarget {
|
|||
[Pure]
|
||||
readonly attribute Node? nextSibling;
|
||||
|
||||
[SetterThrows, Pure]
|
||||
[CEReactions, SetterThrows, Pure]
|
||||
attribute DOMString? nodeValue;
|
||||
[Throws, Pure]
|
||||
[CEReactions, Throws, Pure]
|
||||
attribute DOMString? textContent;
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Node insertBefore(Node node, Node? child);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Node appendChild(Node node);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Node replaceChild(Node node, Node child);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Node removeChild(Node child);
|
||||
void normalize();
|
||||
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
Node cloneNode(optional boolean deep = false);
|
||||
[Pure]
|
||||
boolean isSameNode(Node? node);
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ interface ParentNode {
|
|||
[Pure]
|
||||
readonly attribute unsigned long childElementCount;
|
||||
|
||||
[Throws, Unscopable]
|
||||
[CEReactions, Throws, Unscopable]
|
||||
void prepend((Node or DOMString)... nodes);
|
||||
[Throws, Unscopable]
|
||||
[CEReactions, Throws, Unscopable]
|
||||
void append((Node or DOMString)... nodes);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -50,15 +50,15 @@ interface Range {
|
|||
const unsigned short END_TO_START = 3;
|
||||
[Throws]
|
||||
short compareBoundaryPoints(unsigned short how, Range sourceRange);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
void deleteContents();
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
DocumentFragment extractContents();
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
DocumentFragment cloneContents();
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
void insertNode(Node node);
|
||||
[Throws]
|
||||
[CEReactions, Throws]
|
||||
void surroundContents(Node newParent);
|
||||
|
||||
Range cloneRange();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue