aboutsummaryrefslogtreecommitdiff
path: root/src/naive_parser.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-22 15:34:46 +0200
committerMartin Fischer <martin@push-f.com>2023-09-28 10:36:08 +0200
commit30b4adf60b9423968b0c9c6d23363f6d8cd99384 (patch)
treeaafbdf781282b3440d3b217e6a2614e9cd65a03d /src/naive_parser.rs
parentd46de6ab592e57a31fef13cfc015c4ce818e8f47 (diff)
break!: remove CdataAction
Which action the tokenizer takes depending on whether or not an adjusted current node is present but not in the HTML namespace, is an implementation detail and shouldn't be exposed in the API.
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)
}
}
}