File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
html5ever/src/tree_builder Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -46,21 +46,24 @@ mod types;
46
46
#[ derive( Copy , Clone ) ]
47
47
pub struct TreeBuilderOpts {
48
48
/// Report all parse errors described in the spec, at some
49
- /// performance penalty? Default: false
49
+ /// performance penalty? Default: false
50
50
pub exact_errors : bool ,
51
51
52
52
/// Is scripting enabled?
53
+ ///
54
+ /// This affects how `<noscript>` elements are parsed:
55
+ /// - If scripting **is** enabled then the contents of a `<noscript>` element are parsed as a single text node
56
+ /// - If scriping is **not** enabled then the contents of a `<noscript>` element are parsed as a normal tree of nodes
53
57
pub scripting_enabled : bool ,
54
58
55
- /// Is this an `iframe srcdoc` document?
59
+ /// Is this document being parsed from the `srcdoc` attribute of an `<iframe>` element?
60
+ ///
61
+ /// This affects heuristics that infer `QuirksMode` from `<!DOCTYPE>`.
56
62
pub iframe_srcdoc : bool ,
57
63
58
64
/// Should we drop the DOCTYPE (if any) from the tree?
59
65
pub drop_doctype : bool ,
60
66
61
- /// Obsolete, ignored.
62
- pub ignore_missing_rules : bool ,
63
-
64
67
/// Initial TreeBuilder quirks mode. Default: NoQuirks
65
68
pub quirks_mode : QuirksMode ,
66
69
}
@@ -72,7 +75,6 @@ impl Default for TreeBuilderOpts {
72
75
scripting_enabled : true ,
73
76
iframe_srcdoc : false ,
74
77
drop_doctype : false ,
75
- ignore_missing_rules : false ,
76
78
quirks_mode : NoQuirks ,
77
79
}
78
80
}
You can’t perform that action at this time.
0 commit comments