diff options
Diffstat (limited to 'components/script/dom/textencoder.rs')
-rw-r--r-- | components/script/dom/textencoder.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/textencoder.rs b/components/script/dom/textencoder.rs index 4e796699fc2..0181ec7c6e3 100644 --- a/components/script/dom/textencoder.rs +++ b/components/script/dom/textencoder.rs @@ -66,7 +66,7 @@ impl TextEncoder { impl TextEncoderMethods for TextEncoder { // https://encoding.spec.whatwg.org/#dom-textencoder-encoding fn Encoding(&self) -> DOMString { - self.encoder.name().to_owned() + DOMString(self.encoder.name().to_owned()) } #[allow(unsafe_code)] |