From 42273eb2e4366ddce8a00c9b303fe9a54e8179de Mon Sep 17 00:00:00 2001 From: mgoshorn Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] Updates regex used to validate tagnames to allow for tagnames that include namespace information (esp: svg tags) (#77) Co-authored-by: Mitch Goshorn --- src/snapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snapshot.ts b/src/snapshot.ts index 532fe16a..065feb1e 100644 --- a/src/snapshot.ts +++ b/src/snapshot.ts @@ -12,7 +12,7 @@ import { import { isElement, isShadowRoot } from './utils'; let _id = 1; -const tagNameRegex = RegExp('[^a-z0-9-_]'); +const tagNameRegex = RegExp('[^a-z0-9-_:]'); export const IGNORED_NODE = -2;