pub trait HtmlParserProvider {
// Required method
fn parse_inner_html<'m, 'doc>(
&self,
mutr: &'m mut DocumentMutator<'doc>,
element_id: NodeId,
html: &str,
);
// Provided method
fn parse_document(
&self,
html: &str,
config: DocumentConfig,
) -> Box<dyn Document> { ... }
}Required Methods§
fn parse_inner_html<'m, 'doc>( &self, mutr: &'m mut DocumentMutator<'doc>, element_id: NodeId, html: &str, )
Provided Methods§
Sourcefn parse_document(
&self,
html: &str,
config: DocumentConfig,
) -> Box<dyn Document>
fn parse_document( &self, html: &str, config: DocumentConfig, ) -> Box<dyn Document>
Parse a full HTML document (e.g. the contents of an <iframe>).
The default implementation ignores the HTML and returns an empty document.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".