Merge pull request #166 from Sandman83/master

This fixes #165
This commit is contained in:
Adam D. Ruppe 2018-06-25 19:23:42 -04:00 committed by GitHub
commit b0d21de148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

8
dom.d
View File

@ -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: