pub struct TreeBuilderOpts {
pub exact_errors: bool,
pub scripting_enabled: bool,
pub iframe_srcdoc: bool,
pub drop_doctype: bool,
pub quirks_mode: QuirksMode,
}
Expand description
Tree builder options, with an impl for Default.
Fields§
§exact_errors: bool
Report all parse errors described in the spec, at some performance penalty? Default: false
scripting_enabled: bool
Is scripting enabled?
This affects how <noscript>
elements are parsed:
- If scripting is enabled then the contents of a
<noscript>
element are parsed as a single text node - If scriping is not enabled then the contents of a
<noscript>
element are parsed as a normal tree of nodes
iframe_srcdoc: bool
Is this document being parsed from the srcdoc
attribute of an <iframe>
element?
This affects heuristics that infer QuirksMode
from <!DOCTYPE>
.
drop_doctype: bool
Should we drop the DOCTYPE (if any) from the tree?
quirks_mode: QuirksMode
Initial TreeBuilder quirks mode. Default: NoQuirks
Trait Implementations§
Source§impl Clone for TreeBuilderOpts
impl Clone for TreeBuilderOpts
Source§fn clone(&self) -> TreeBuilderOpts
fn clone(&self) -> TreeBuilderOpts
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for TreeBuilderOpts
impl Default for TreeBuilderOpts
Source§fn default() -> TreeBuilderOpts
fn default() -> TreeBuilderOpts
Returns the “default value” for a type. Read more
impl Copy for TreeBuilderOpts
Auto Trait Implementations§
impl Freeze for TreeBuilderOpts
impl RefUnwindSafe for TreeBuilderOpts
impl Send for TreeBuilderOpts
impl Sync for TreeBuilderOpts
impl Unpin for TreeBuilderOpts
impl UnwindSafe for TreeBuilderOpts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more