diff options
Diffstat (limited to 'components/script/dom/textdecoder.rs')
-rw-r--r-- | components/script/dom/textdecoder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/textdecoder.rs b/components/script/dom/textdecoder.rs index d4c49b490f8..899961963c5 100644 --- a/components/script/dom/textdecoder.rs +++ b/components/script/dom/textdecoder.rs @@ -72,7 +72,7 @@ impl TextDecoder { impl TextDecoderMethods for TextDecoder { // https://encoding.spec.whatwg.org/#dom-textdecoder-encoding fn Encoding(&self) -> DOMString { - self.encoding.whatwg_name().unwrap().to_owned() + DOMString(self.encoding.whatwg_name().unwrap().to_owned()) } // https://encoding.spec.whatwg.org/#dom-textdecoder-fatal |