From deb962229b59e7fec3ba698fdd6da3adbd6d88be Mon Sep 17 00:00:00 2001 From: Alexander Orlov Date: Sun, 24 Jun 2018 13:58:30 +0200 Subject: [PATCH] This fixes #165 --- dom.d | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dom.d b/dom.d index d48edd3..dac92b1 100644 --- a/dom.d +++ b/dom.d @@ -998,6 +998,9 @@ class Document : FileResource { default: // it is an attribute string attrName = readAttributeName(); string attrValue = attrName; + + eatWhitespace; + if(pos >= data.length) { if(strict) assert(0, "this should have thrown in readAttributeName"); @@ -1008,7 +1011,12 @@ class Document : FileResource { } if(data[pos] == '=') { pos++; + + eatWhitespace; + attrValue = readAttributeValue(); + + eatWhitespace; } blankValue: