This commit is contained in:
Alexander Orlov 2018-06-24 13:58:30 +02:00
parent d34f3e5b7c
commit deb962229b
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: