the spec allows ugly whitespace alas

This commit is contained in:
Adam D. Ruppe 2022-12-16 09:20:39 -05:00
parent c4a2277f6b
commit 90ab8167fe
1 changed files with 3 additions and 2 deletions

5
dom.d
View File

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