pub trait DocumentFragmentMethods {
    // Required methods
    fn GetElementById(&self, elementId: DOMString) -> Option<Root<Dom<Element>>>;
    fn Children(&self) -> Root<Dom<HTMLCollection>>;
    fn GetFirstElementChild(&self) -> Option<Root<Dom<Element>>>;
    fn GetLastElementChild(&self) -> Option<Root<Dom<Element>>>;
    fn ChildElementCount(&self) -> u32;
    fn Prepend(
        &self,
        nodes: Vec<NodeOrString>,
        _can_gc: CanGc,
    ) -> Result<(), Error>;
    fn Append(
        &self,
        nodes: Vec<NodeOrString>,
        _can_gc: CanGc,
    ) -> Result<(), Error>;
    fn ReplaceChildren(
        &self,
        nodes: Vec<NodeOrString>,
        _can_gc: CanGc,
    ) -> Result<(), Error>;
    fn QuerySelector(
        &self,
        selectors: DOMString,
    ) -> Result<Option<Root<Dom<Element>>>, Error>;
    fn QuerySelectorAll(
        &self,
        selectors: DOMString,
    ) -> Result<Root<Dom<NodeList>>, Error>;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
    ) -> Result<Root<Dom<DocumentFragment>>, Error>;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementors§