mirror of https://github.com/adamdruppe/arsd.git
This fixes #165
This commit is contained in:
parent
d34f3e5b7c
commit
deb962229b
8
dom.d
8
dom.d
|
@ -998,6 +998,9 @@ class Document : FileResource {
|
||||||
default: // it is an attribute
|
default: // it is an attribute
|
||||||
string attrName = readAttributeName();
|
string attrName = readAttributeName();
|
||||||
string attrValue = attrName;
|
string attrValue = attrName;
|
||||||
|
|
||||||
|
eatWhitespace;
|
||||||
|
|
||||||
if(pos >= data.length) {
|
if(pos >= data.length) {
|
||||||
if(strict)
|
if(strict)
|
||||||
assert(0, "this should have thrown in readAttributeName");
|
assert(0, "this should have thrown in readAttributeName");
|
||||||
|
@ -1008,7 +1011,12 @@ class Document : FileResource {
|
||||||
}
|
}
|
||||||
if(data[pos] == '=') {
|
if(data[pos] == '=') {
|
||||||
pos++;
|
pos++;
|
||||||
|
|
||||||
|
eatWhitespace;
|
||||||
|
|
||||||
attrValue = readAttributeValue();
|
attrValue = readAttributeValue();
|
||||||
|
|
||||||
|
eatWhitespace;
|
||||||
}
|
}
|
||||||
|
|
||||||
blankValue:
|
blankValue:
|
||||||
|
|
Loading…
Reference in New Issue