diff options
Diffstat (limited to 'components/script/dom/htmlbodyelement.rs')
-rw-r--r-- | components/script/dom/htmlbodyelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlbodyelement.rs b/components/script/dom/htmlbodyelement.rs index 4b639d0ed42..333febd77c9 100644 --- a/components/script/dom/htmlbodyelement.rs +++ b/components/script/dom/htmlbodyelement.rs @@ -70,7 +70,7 @@ impl HTMLBodyElementMethods for HTMLBodyElement { fn SetText(&self, value: DOMString) { let element = self.upcast::<Element>(); let color = str::parse_legacy_color(&value).ok(); - element.set_attribute(&Atom::from_slice("text"), AttrValue::Color(value, color)); + element.set_attribute(&atom!("text"), AttrValue::Color(value, color)); } // https://html.spec.whatwg.org/multipage/#the-body-element |