mirror of https://github.com/adamdruppe/arsd.git
another range check
This commit is contained in:
parent
cf4547219b
commit
326405df75
5
dom.d
5
dom.d
|
@ -3569,6 +3569,11 @@ class Document : FileResource {
|
|||
|
||||
enforce(data[pos] == '<');
|
||||
pos++;
|
||||
if(pos == data.length) {
|
||||
if(strict)
|
||||
throw new MarkupException("Found trailing < at end of file");
|
||||
// if not strict, we'll just skip the switch
|
||||
} else
|
||||
switch(data[pos]) {
|
||||
// I don't care about these, so I just want to skip them
|
||||
case '!': // might be a comment, a doctype, or a special instruction
|
||||
|
|
Loading…
Reference in New Issue