Trait script::dom::bindings::codegen::Bindings::DocumentFragmentBinding::DocumentFragment_Binding::DocumentFragmentMethods
source · pub trait DocumentFragmentMethods<D: DomTypes> {
// 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§
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>
Object Safety§
This trait is not object safe.