Skip to content

Commit de94da4

Browse files
author
Richard Dodd
committed
Address requested changes
1 parent 30891d2 commit de94da4

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

markup5ever/serialize.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ use std::io;
1818

1919
//§ serializing-html-fragments
2020
/// 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.
2221
#[derive(Clone, PartialEq)]
2322
pub enum TraversalScope {
2423
/// Include the parent node when serializing.
2524
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
2731
ChildrenOnly(Option<QualName>)
2832
}
2933

markup5ever/util/buffer_queue.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,6 @@ impl BufferQueue {
170170
result
171171
}
172172

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.
179173
/// Consume bytes matching the pattern, using a custom comparison function `eq`.
180174
///
181175
/// Returns `Some(true)` if there is a match, `Some(false)` if there is no match, or `None` if

0 commit comments

Comments
 (0)