aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r--components/script/dom/node.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 983e2e8d403..2985ad80cb3 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -51,7 +51,6 @@ use dom::htmltextareaelement::{HTMLTextAreaElement, LayoutHTMLTextAreaElementHel
use dom::nodelist::NodeList;
use dom::processinginstruction::ProcessingInstruction;
use dom::range::WeakRangeVec;
-use dom::servoparser::ServoParser;
use dom::svgsvgelement::{SVGSVGElement, LayoutSVGSVGElementHelpers};
use dom::text::Text;
use dom::virtualmethods::{VirtualMethods, vtable_for};
@@ -799,19 +798,6 @@ impl Node {
}
}
- // https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#dfn-concept-parse-fragment
- pub fn parse_fragment(&self, markup: DOMString) -> Fallible<Root<DocumentFragment>> {
- let context_document = document_from_node(self);
- let fragment = DocumentFragment::new(&context_document);
- if context_document.is_html_document() {
- ServoParser::parse_html_fragment(self.upcast(), markup, fragment.upcast());
- } else {
- // FIXME: XML case
- unimplemented!();
- }
- Ok(fragment)
- }
-
/// Used by `HTMLTableSectionElement::InsertRow` and `HTMLTableRowElement::InsertCell`
pub fn insert_cell_or_row<F, G, I>(&self, index: i32, get_items: F, new_child: G) -> Fallible<Root<HTMLElement>>
where F: Fn() -> Root<HTMLCollection>,