aboutsummaryrefslogtreecommitdiff
path: root/src/emitter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/emitter.rs')
-rw-r--r--src/emitter.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emitter.rs b/src/emitter.rs
index 30e1d17..0985403 100644
--- a/src/emitter.rs
+++ b/src/emitter.rs
@@ -165,14 +165,13 @@ pub trait Emitter<O> {
fn adjusted_current_node_present_and_not_in_html_namespace(&mut self) -> bool;
}
-/// The default implementation of [`Emitter`], used to produce tokens.
-///
-/// # Warning
+/// The DefaultEmitter is not exposed in the public API because:
///
/// * Using the DefaultEmitter without calling [`Tokenizer::set_state`]
/// results in wrong state transitions:
///
-/// ```
+#[cfg_attr(not(feature = "integration-tests"), doc = "```ignore")]
+#[cfg_attr(feature = "integration-tests", doc = "```")]
/// # use html5tokenizer::{DefaultEmitter, Tokenizer, Token};
/// let emitter = DefaultEmitter::default();
/// let html = "<script><b>";
@@ -184,7 +183,8 @@ pub trait Emitter<O> {
/// * The DefaultEmitter implements [`Emitter::adjusted_current_node_present_and_not_in_html_namespace`]
/// by returning false, which results in all CDATA sections being tokenized as bogus comments.
///
-/// ```
+#[cfg_attr(not(feature = "integration-tests"), doc = "```ignore")]
+#[cfg_attr(feature = "integration-tests", doc = "```")]
/// # use html5tokenizer::{DefaultEmitter, Tokenizer, Token};
/// let emitter = DefaultEmitter::default();
/// let html = "<svg><![CDATA[I love SVG]]>";