File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,16 @@ use std::io;
18
18
19
19
//§ serializing-html-fragments
20
20
/// Used as a parameter to `serialize`, telling it if we want to skip the parent.
21
- /// TODO check: Currently the parameter to `ChildrenOnly` is unused.
22
21
#[ derive( Clone , PartialEq ) ]
23
22
pub enum TraversalScope {
24
23
/// Include the parent node when serializing.
25
24
IncludeNode ,
26
- /// Only serialize the children of the node.
25
+ /// Only serialize the children of the node, treating any provided qualified name as the
26
+ /// parent while serializing.
27
+ ///
28
+ /// This is used in the implementation of [`html5ever::serialize::serialize`]
29
+ ///
30
+ /// [`html5ever::serialize::serialize`]: ../../html5ever/serialize/fn.serialize.html
27
31
ChildrenOnly ( Option < QualName > )
28
32
}
29
33
Original file line number Diff line number Diff line change @@ -170,12 +170,6 @@ impl BufferQueue {
170
170
result
171
171
}
172
172
173
- // Check if the next characters are an ASCII case-insensitive match for
174
- // `pat`, which must be non-empty.
175
- //
176
- // If so, consume them and return Some(true).
177
- // If they do not match, return Some(false).
178
- // If not enough characters are available to know, return None.
179
173
/// Consume bytes matching the pattern, using a custom comparison function `eq`.
180
174
///
181
175
/// Returns `Some(true)` if there is a match, `Some(false)` if there is no match, or `None` if
You can’t perform that action at this time.
0 commit comments