From 21dca274bd1befc33fdaa3d3b51bd35fd947d09c Mon Sep 17 00:00:00 2001 From: MarlinKuhn Date: Mon, 6 Jan 2025 12:10:40 +0100 Subject: [PATCH] Update xml.go --- xml.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/xml.go b/xml.go index 6dfafb2..22278d8 100644 --- a/xml.go +++ b/xml.go @@ -1035,11 +1035,6 @@ Input: d.ungetc('<') break Input } - // This occurs only for an unquoted attr name. - if b == '>' && !cdata && quote < 0 { // Possible end of tag reached - d.ungetc('>') // Leaving end of tag available - break // returning text - } if quote >= 0 && b == byte(quote) { break Input }