diff --git a/packages/happy-dom/src/xml-parser/XMLParser.ts b/packages/happy-dom/src/xml-parser/XMLParser.ts index f2d769f82..0d8e61ef7 100755 --- a/packages/happy-dom/src/xml-parser/XMLParser.ts +++ b/packages/happy-dom/src/xml-parser/XMLParser.ts @@ -14,16 +14,17 @@ import { decode } from 'he'; /** * Markup RegExp. * - * Group 1: Start tag (e.g. "div" in "
"). + * Group 1: Beginning of start tag (e.g. "div" in ""). - * Group 3: Beginning of start tag (e.g. "div" in ""). + * Group 3: Comment with ending "--" (e.g. " Comment 1 " in ""). + * Group 4: Comment without ending "--" (e.g. " Comment 1 " in "|