Skip to content

Commit dad503b

Browse files
committed
make parsing doctype case-insensitive
1 parent bb0437c commit dad503b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raw.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ function next(o::Raw)
257257
elseif c3 === '['
258258
type = RawCData
259259
j = findnext(Vector{UInt8}("]]>"), data, i)[end]
260-
elseif c3 === 'D'
260+
elseif c3 === 'D' || c3 == 'd'
261261
type = RawDTD
262262
j = findnext(==(UInt8('>')), data, i)
263263
while sum(==(UInt8('>')), data[i:j]) != sum(==(UInt8('<')), data[i:j])

0 commit comments

Comments
 (0)