Skip to content

Commit

Permalink
make parsing doctype case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed May 10, 2023
1 parent bb0437c commit dad503b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function next(o::Raw)
elseif c3 === '['
type = RawCData
j = findnext(Vector{UInt8}("]]>"), data, i)[end]
elseif c3 === 'D'
elseif c3 === 'D' || c3 == 'd'
type = RawDTD
j = findnext(==(UInt8('>')), data, i)
while sum(==(UInt8('>')), data[i:j]) != sum(==(UInt8('<')), data[i:j])
Expand Down

0 comments on commit dad503b

Please sign in to comment.