From 655b2be0a4d132970003a663cdf10ff679f46f43 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Thu, 9 Jul 2026 15:15:49 +1000 Subject: [PATCH 1/2] Docs: TINYDOC-3528 - Clicking anchor links with special characters could throw a querySelectorAll error --- modules/ROOT/pages/8.8.0-release-notes.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ROOT/pages/8.8.0-release-notes.adoc b/modules/ROOT/pages/8.8.0-release-notes.adoc index 8f2fdad0d0..887f889578 100644 --- a/modules/ROOT/pages/8.8.0-release-notes.adoc +++ b/modules/ROOT/pages/8.8.0-release-notes.adoc @@ -160,6 +160,13 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a // CCFR here. +=== Clicking anchor links with special characters could throw a `+querySelectorAll+` error +// #TINYMCE-8784 + +Previously, clicking an anchor link whose href contained special characters such as semicolons, common in Google Web Toolkit (GWT) place tokens like `+#!placetoken;param1=value1+`, threw a `+querySelectorAll+` syntax error. This occurred both in read-only mode and when using the Link plugin *Open link* feature through the toolbar button, the context menu, and the Alt+Enter keyboard shortcut, leaving a console error and preventing navigation to the target bookmark. + +In {productname} {release-version}, anchor href values are escaped with `+CSS.escape+` before they are used as selectors. Clicking anchor links with special characters no longer throws an error, and the editor scrolls to the target bookmark as expected. + [[security-fixes]] == Security fixes From c53264fd0d291f02433b3c5fc1ad8eb64f34813a Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Thu, 9 Jul 2026 16:30:48 +1000 Subject: [PATCH 2/2] Docs: TINYDOC-3528 - Expand querySelectorAll anchor fix note with error message and full fix scope --- modules/ROOT/pages/8.8.0-release-notes.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/8.8.0-release-notes.adoc b/modules/ROOT/pages/8.8.0-release-notes.adoc index 887f889578..798f6f5fa4 100644 --- a/modules/ROOT/pages/8.8.0-release-notes.adoc +++ b/modules/ROOT/pages/8.8.0-release-notes.adoc @@ -163,9 +163,9 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a === Clicking anchor links with special characters could throw a `+querySelectorAll+` error // #TINYMCE-8784 -Previously, clicking an anchor link whose href contained special characters such as semicolons, common in Google Web Toolkit (GWT) place tokens like `+#!placetoken;param1=value1+`, threw a `+querySelectorAll+` syntax error. This occurred both in read-only mode and when using the Link plugin *Open link* feature through the toolbar button, the context menu, and the Alt+Enter keyboard shortcut, leaving a console error and preventing navigation to the target bookmark. +Previously, clicking an anchor link whose href contained special characters, such as the semicolons common in Google Web Toolkit (GWT) place tokens like `+#!placetoken;param1=value1;param2=value2+`, threw a `+querySelectorAll+` syntax error: `+Uncaught SyntaxError: Failed to execute 'querySelectorAll' on 'Document': '...' is not a valid selector+`. This occurred both in read-only mode and when using the Link plugin *Open link* feature through the toolbar button, the context menu, and the Alt+Enter keyboard shortcut. The error appeared in the console and prevented navigation to the target bookmark. -In {productname} {release-version}, anchor href values are escaped with `+CSS.escape+` before they are used as selectors. Clicking anchor links with special characters no longer throws an error, and the editor scrolls to the target bookmark as expected. +In {productname} {release-version}, anchor href values are escaped with `+CSS.escape+` before they are used as `+querySelectorAll+` selectors, so all ASCII special characters in an href are handled. Clicking anchor links with special characters no longer throws an error, and the editor scrolls to the target bookmark across different URL fragment formats. [[security-fixes]]