mirror of https://github.com/adamdruppe/arsd.git
the spec allows ugly whitespace alas
This commit is contained in:
parent
c4a2277f6b
commit
90ab8167fe
5
dom.d
5
dom.d
|
@ -1138,8 +1138,9 @@ class Document : FileResource, DomParent {
|
||||||
string attrValue = attrName;
|
string attrValue = attrName;
|
||||||
|
|
||||||
bool ateAny = eatWhitespace();
|
bool ateAny = eatWhitespace();
|
||||||
if(strict && ateAny)
|
// the spec allows this too, sigh https://www.w3.org/TR/REC-xml/#NT-Eq
|
||||||
throw new MarkupException("inappropriate whitespace after attribute name");
|
//if(strict && ateAny)
|
||||||
|
//throw new MarkupException("inappropriate whitespace after attribute name");
|
||||||
|
|
||||||
if(pos >= data.length) {
|
if(pos >= data.length) {
|
||||||
if(strict)
|
if(strict)
|
||||||
|
|
Loading…
Reference in New Issue