diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-22 15:34:46 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-28 10:36:08 +0200 |
commit | 30b4adf60b9423968b0c9c6d23363f6d8cd99384 (patch) | |
tree | aafbdf781282b3440d3b217e6a2614e9cd65a03d /integration_tests/tests/test_html5lib.rs | |
parent | d46de6ab592e57a31fef13cfc015c4ce818e8f47 (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 'integration_tests/tests/test_html5lib.rs')
-rw-r--r-- | integration_tests/tests/test_html5lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/integration_tests/tests/test_html5lib.rs b/integration_tests/tests/test_html5lib.rs index 3e07531..010fd44 100644 --- a/integration_tests/tests/test_html5lib.rs +++ b/integration_tests/tests/test_html5lib.rs @@ -6,8 +6,7 @@ use html5lib_tests::{ use html5tokenizer::{ offset::{Offset, PosTrackingReader, Position}, reader::Reader, - BasicEmitter, CdataAction, Emitter, Error, Event, InternalState, Token, Tokenizer, - TracingEmitter, + BasicEmitter, Emitter, Error, Event, InternalState, Token, Tokenizer, TracingEmitter, }; use similar_asserts::assert_eq; @@ -151,7 +150,7 @@ fn run_test_inner<R, O, E, T>( while let Some(event) = tokenizer.next() { let token = match event.unwrap() { Event::CdataOpen => { - tokenizer.handle_cdata_open(CdataAction::BogusComment); + tokenizer.handle_cdata_open(false); continue; } Event::Token(token) => token.into(), |