From 90ab8167fed35b272949bce1e9b1e576a6eaa174 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 16 Dec 2022 09:20:39 -0500 Subject: [PATCH] the spec allows ugly whitespace alas --- dom.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dom.d b/dom.d index 3e3884a..2440401 100644 --- a/dom.d +++ b/dom.d @@ -1138,8 +1138,9 @@ class Document : FileResource, DomParent { string attrValue = attrName; bool ateAny = eatWhitespace(); - if(strict && ateAny) - throw new MarkupException("inappropriate whitespace after attribute name"); + // the spec allows this too, sigh https://www.w3.org/TR/REC-xml/#NT-Eq + //if(strict && ateAny) + //throw new MarkupException("inappropriate whitespace after attribute name"); if(pos >= data.length) { if(strict)