From 4daf227137f6e008e094ebc3edab2321fd2b5479 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 28 Jan 2026 10:46:06 +0000 Subject: [PATCH] Add patch for linkify to fix doctype handling (#31900) --- patches/linkify-html+4.3.2.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/linkify-html+4.3.2.patch diff --git a/patches/linkify-html+4.3.2.patch b/patches/linkify-html+4.3.2.patch new file mode 100644 index 0000000000..383152d254 --- /dev/null +++ b/patches/linkify-html+4.3.2.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/linkify-html/dist/linkify-html.mjs b/node_modules/linkify-html/dist/linkify-html.mjs +index 63b1fe5..f61e3b7 100644 +--- a/node_modules/linkify-html/dist/linkify-html.mjs ++++ b/node_modules/linkify-html/dist/linkify-html.mjs +@@ -201,6 +201,8 @@ var EventedTokenizer = /** @class */function () { + this.consume(); + if (this.delegate.endDoctype) this.delegate.endDoctype(); + this.transitionTo("beforeData" /* beforeData */); ++ } else { ++ throw new Error("Unexpected token"); + } + }, + doctypePublicIdentifierDoubleQuoted: function () {