From c3c863d8674f657ed745cda330e57db51734a53c Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sun, 17 May 2020 09:20:23 -0400 Subject: [PATCH] fix the switch case the pr created --- dom.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dom.d b/dom.d index 65e6ad1..2d689b1 100644 --- a/dom.d +++ b/dom.d @@ -804,9 +804,10 @@ class Document : FileResource { return Ele(1, null, tname); // closing tag reports itself here case ' ': // assume it isn't a real element... - if(strict) + if(strict) { parseError("bad markup - improperly placed <"); - else + assert(0); // parseError always throws + } else return Ele(0, TextNode.fromUndecodedString(this, "<"), null); default: