aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/script/dom/node.rs9
-rw-r--r--src/components/script/dom/webidls/Node.webidl4
2 files changed, 6 insertions, 7 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs
index 8ebd4a3f874..5850779692c 100644
--- a/src/components/script/dom/node.rs
+++ b/src/components/script/dom/node.rs
@@ -18,7 +18,7 @@ use dom::bindings::codegen::InheritTypes::{CharacterDataCast, NodeBase, NodeDeri
use dom::bindings::codegen::InheritTypes::{ProcessingInstructionCast, EventTargetCast};
use dom::bindings::codegen::InheritTypes::{HTMLLegendElementDerived, HTMLFieldSetElementDerived};
use dom::bindings::codegen::InheritTypes::HTMLOptGroupElementDerived;
-use dom::bindings::error::{ErrorResult, Fallible, NotFound, HierarchyRequest, Syntax};
+use dom::bindings::error::{Fallible, NotFound, HierarchyRequest, Syntax};
use dom::bindings::global::{GlobalRef, Window};
use dom::bindings::js::{JS, JSRef, RootedReference, Temporary, Root, OptionalUnrootable};
use dom::bindings::js::{OptionalSettable, TemporaryPushable, OptionalRootedRootable};
@@ -1557,14 +1557,14 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
}
// http://dom.spec.whatwg.org/#dom-node-nodevalue
- fn SetNodeValue(&self, val: Option<DOMString>) -> ErrorResult {
+ fn SetNodeValue(&self, val: Option<DOMString>) {
match self.type_id {
CommentNodeTypeId |
TextNodeTypeId |
ProcessingInstructionNodeTypeId => {
self.SetTextContent(val)
}
- _ => Ok(())
+ _ => {}
}
}
@@ -1596,7 +1596,7 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
}
// http://dom.spec.whatwg.org/#dom-node-textcontent
- fn SetTextContent(&self, value: Option<DOMString>) -> ErrorResult {
+ fn SetTextContent(&self, value: Option<DOMString>) {
let value = null_str_as_empty(&value);
match self.type_id {
DocumentFragmentNodeTypeId |
@@ -1627,7 +1627,6 @@ impl<'a> NodeMethods for JSRef<'a, Node> {
DoctypeNodeTypeId |
DocumentNodeTypeId => {}
}
- Ok(())
}
// http://dom.spec.whatwg.org/#dom-node-insertbefore
diff --git a/src/components/script/dom/webidls/Node.webidl b/src/components/script/dom/webidls/Node.webidl
index acec121ccd2..3297b2c3ab1 100644
--- a/src/components/script/dom/webidls/Node.webidl
+++ b/src/components/script/dom/webidls/Node.webidl
@@ -46,9 +46,9 @@ interface Node : EventTarget {
[Pure]
readonly attribute Node? nextSibling;
- [SetterThrows, Pure]
+ [Pure]
attribute DOMString? nodeValue;
- [SetterThrows, Pure]
+ [Pure]
attribute DOMString? textContent;
void normalize();