pub trait DOMParserMethods {
    // Required methods
    fn ParseFromString(
        &self,
        str: DOMString,
        type_: SupportedType,
        _can_gc: CanGc,
    ) -> Result<Root<Dom<Document>>, Error>;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
    ) -> Result<Root<Dom<DOMParser>>, Error>;
}

Required Methods§

source

fn ParseFromString( &self, str: DOMString, type_: SupportedType, _can_gc: CanGc, ) -> Result<Root<Dom<Document>>, Error>

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<DOMParser>>, Error>

Object Safety§

This trait is not object safe.

Implementors§