Skip to content

Commit b71cf7c

Browse files
committed
Use only uppercase DOCTYPE in tests where possible as required by the specification
See https://www.w3.org/TR/xml11/#NT-doctypedecl
1 parent 6dec2b2 commit b71cf7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/fuzzing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn fuzz_101() {
5151

5252
#[test]
5353
fn fuzz_empty_doctype() {
54-
let data: &[u8] = b"<!doctype \n >";
54+
let data: &[u8] = b"<!DOCTYPE \n >";
5555
let mut reader = Reader::from_reader(data);
5656
let mut buf = Vec::new();
5757
assert!(matches!(

tests/reader-config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ mod trim_markup_names_in_closing_tags {
471471
}
472472

473473
const XML: &str = " \t\r\n\
474-
<!doctype root \t\r\n> \t\r\n\
474+
<!DOCTYPE root \t\r\n> \t\r\n\
475475
<root \t\r\n> \t\r\n\
476476
<empty \t\r\n/> \t\r\n\
477477
text \t\r\n\

0 commit comments

Comments
 (0)