aboutsummaryrefslogtreecommitdiff
path: root/src/naive_parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/naive_parser.rs')
-rw-r--r--src/naive_parser.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/naive_parser.rs b/src/naive_parser.rs
index 70b6522..b26e25e 100644
--- a/src/naive_parser.rs
+++ b/src/naive_parser.rs
@@ -1,6 +1,5 @@
use crate::offset::{Offset, Position};
use crate::reader::{IntoReader, Reader};
-use crate::tokenizer::CdataAction;
use crate::{BasicEmitter, Emitter, Event, State, Tokenizer};
/// A naive HTML parser (**not** spec-compliant since it doesn't do tree construction).
@@ -87,7 +86,7 @@ where
}
Ok(Event::CdataOpen) => {
// Naively parse any CDATA sections as bogus comments.
- self.tokenizer.handle_cdata_open(CdataAction::BogusComment)
+ self.tokenizer.handle_cdata_open(false)
}
}
}