From 933f29f5127a131477012f9a302f52478f035bd0 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 5 Mar 2014 18:53:43 +0100 Subject: [PATCH] Match the spec more closely in Node.webidl. --- src/components/script/dom/webidls/Node.webidl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/script/dom/webidls/Node.webidl b/src/components/script/dom/webidls/Node.webidl index f21d528be26..bc1c45ade9f 100644 --- a/src/components/script/dom/webidls/Node.webidl +++ b/src/components/script/dom/webidls/Node.webidl @@ -50,14 +50,6 @@ interface Node : EventTarget { attribute DOMString? nodeValue; [SetterThrows, Pure] attribute DOMString? textContent; - [Throws] - Node insertBefore(Node node, Node? child); - [Throws] - Node appendChild(Node node); - [Throws] - Node replaceChild(Node node, Node child); - [Throws] - Node removeChild(Node child); void normalize(); [Throws] @@ -69,7 +61,7 @@ interface Node : EventTarget { const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; - const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; // historical + const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; unsigned short compareDocumentPosition(Node other); boolean contains(Node? other); @@ -77,6 +69,15 @@ interface Node : EventTarget { DOMString? lookupNamespaceURI(DOMString? prefix); boolean isDefaultNamespace(DOMString? namespace); + [Throws] + Node insertBefore(Node node, Node? child); + [Throws] + Node appendChild(Node node); + [Throws] + Node replaceChild(Node node, Node child); + [Throws] + Node removeChild(Node child); + // Mozilla-specific stuff // These have been moved to Element in the spec. // If we move namespaceURI, prefix and localName to Element they should return