diff options
Diffstat (limited to 'components/script/dom/htmltableelement.rs')
-rw-r--r-- | components/script/dom/htmltableelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs index 355e23f6c59..3279b59bc53 100644 --- a/components/script/dom/htmltableelement.rs +++ b/components/script/dom/htmltableelement.rs @@ -75,7 +75,7 @@ impl HTMLTableElementMethods for HTMLTableElement { let caption = match self.GetCaption() { Some(caption) => caption, None => { - let caption = HTMLTableCaptionElement::new(DOMString("caption".to_owned()), + let caption = HTMLTableCaptionElement::new(DOMString::from("caption"), None, document_from_node(self).r()); self.SetCaption(Some(caption.r())); @@ -94,7 +94,7 @@ impl HTMLTableElementMethods for HTMLTableElement { // https://html.spec.whatwg.org/multipage/#dom-table-createtbody fn CreateTBody(&self) -> Root<HTMLTableSectionElement> { - let tbody = HTMLTableSectionElement::new(DOMString("tbody".to_owned()), + let tbody = HTMLTableSectionElement::new(DOMString::from("tbody"), None, document_from_node(self).r()); let node = self.upcast::<Node>(); |