`, and a `=` where a name starts belongs to the name. A quote with no close * ends the match, because a browser reads the rest of the page as that value. Group 1 is the `/` of a tag that closes itself. */ const SVG_TAG_REST = '/\G(?:\s++|\/(?!>)|(?:=[^\s\/>=]*+|[^\s\/>=]++)(?:\s*+=\s*+(?:"[^"]*+"|\'[^\']*+\'|(?!["\'])[^\s>]*+)|(?!\s*+=)))*+(\/?)>/'; /** * What follows a whole element name: `` is another element. */ const NAME_END = '(?=[\s/>])'; /** * A comment: `` and `` end at once, and one with no close runs to the end, as in a browser. */ const COMMENT = '/