diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 91f5e19dc7c..da44169ce59 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -3996,7 +3996,7 @@ impl DocumentMethods for Document { return Ok(()); } - match (self.get_html_element(), &old_body) { + match (self.GetDocumentElement(), &old_body) { // Step 3. (Some(ref root), &Some(ref child)) => { let root = root.upcast::(); diff --git a/tests/wpt/metadata/html/dom/documents/dom-tree-accessors/Document.body.html.ini b/tests/wpt/metadata/html/dom/documents/dom-tree-accessors/Document.body.html.ini deleted file mode 100644 index b19ab8eb8ce..00000000000 --- a/tests/wpt/metadata/html/dom/documents/dom-tree-accessors/Document.body.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[Document.body.html] - [Setting document.body to a new body element when the root element is a test element.] - expected: FAIL -