aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domexception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/domexception.rs')
-rw-r--r--components/script/dom/domexception.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/domexception.rs b/components/script/dom/domexception.rs
index 53511d4d721..59f8c0a0743 100644
--- a/components/script/dom/domexception.rs
+++ b/components/script/dom/domexception.rs
@@ -59,21 +59,21 @@ impl DOMException {
}
impl<'a> DOMExceptionMethods for JSRef<'a, DOMException> {
- // http://dom.spec.whatwg.org/#dom-domexception-code
+ // http://heycam.github.io/webidl/#dfn-DOMException
fn Code(self) -> u16 {
match self.code {
- // http://dom.spec.whatwg.org/#concept-throw
+ // http://heycam.github.io/webidl/#dfn-throw
DOMErrorName::EncodingError => 0,
code => code as u16
}
}
- // http://dom.spec.whatwg.org/#error-names-0
+ // http://heycam.github.io/webidl/#idl-DOMException-error-names
fn Name(self) -> DOMString {
format!("{:?}", self.code)
}
- // http://dom.spec.whatwg.org/#error-names-0
+ // http://heycam.github.io/webidl/#error-names
fn Message(self) -> DOMString {
let message = match self.code {
DOMErrorName::IndexSizeError => "The index is not in the allowed range.",