From 75f72692097fa253d4395f79f5dcd81a697e73a4 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 3 Jun 2013 17:06:38 -0400 Subject: [PATCH] minor --- dom.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom.d b/dom.d index 69c9e54..5985c1c 100644 --- a/dom.d +++ b/dom.d @@ -3833,7 +3833,7 @@ class Document : FileResource { if(pos == data.length) { if(strict) throw new MarkupException("unclosed processing instruction ()"); - } + } else pos++; // skipping the > if(parseSawBangInstruction !is null) if(parseSawBangInstruction(data[start .. pos])) { @@ -3844,10 +3844,12 @@ class Document : FileResource { } } + /* if(pos < data.length && data[pos] == '>') pos++; // skip the > else assert(!strict); + */ break; case '%': case '?':