diff options
Diffstat (limited to 'integration_tests')
-rw-r--r-- | integration_tests/tests/test_html5lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/integration_tests/tests/test_html5lib.rs b/integration_tests/tests/test_html5lib.rs index cf95bb6..8afa033 100644 --- a/integration_tests/tests/test_html5lib.rs +++ b/integration_tests/tests/test_html5lib.rs @@ -315,7 +315,9 @@ fn run_test_inner<R: Reader>( ); println!("description: {}", test.description); tokenizer.set_internal_state(state); - tokenizer.set_last_start_tag(test.last_start_tag.as_ref().map(String::as_str)); + if let Some(last_start_tag) = &test.last_start_tag { + tokenizer.set_last_start_tag(last_start_tag); + } let mut actual_tokens = Vec::new(); let mut actual_errors = Vec::new(); |