From ffcce9c69613084b53b001fc4a23281705cb3c6b Mon Sep 17 00:00:00 2001 From: nod_ <nod_@598310.no-reply.drupal.org> Date: Sat, 10 Feb 2024 15:52:58 +0100 Subject: [PATCH] Issue #3418332 by Tom Konda: Replace uncommon HTMLDocument with Document in JSDoc --- core/misc/drupal.js | 8 ++++---- core/modules/block/js/block.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/misc/drupal.js b/core/misc/drupal.js index 7d0f3b12c797..4a8ab09de598 100644 --- a/core/misc/drupal.js +++ b/core/misc/drupal.js @@ -71,7 +71,7 @@ window.Drupal = { behaviors: {}, locale: {} }; * * @callback Drupal~behaviorAttach * - * @param {HTMLDocument|HTMLElement} context + * @param {Document|HTMLElement} context * An element to detach behaviors from. * @param {?object} settings * An object containing settings for the current context. It is rarely used. @@ -84,7 +84,7 @@ window.Drupal = { behaviors: {}, locale: {} }; * * @callback Drupal~behaviorDetach * - * @param {HTMLDocument|HTMLElement} context + * @param {Document|HTMLElement} context * An element to attach behaviors to. * @param {object} settings * An object containing settings for the current context. @@ -143,7 +143,7 @@ window.Drupal = { behaviors: {}, locale: {} }; * } * }; * - * @param {HTMLDocument|HTMLElement} [context=document] + * @param {Document|HTMLElement} [context=document] * An element to attach behaviors to. * @param {object} [settings=drupalSettings] * An object containing settings for the current context. If none is given, @@ -183,7 +183,7 @@ window.Drupal = { behaviors: {}, locale: {} }; * implementation, i.e. `once.remove('behaviorName', selector, context)`, * to ensure the behavior is detached only from previously processed elements. * - * @param {HTMLDocument|HTMLElement} [context=document] + * @param {Document|HTMLElement} [context=document] * An element to detach behaviors from. * @param {object} [settings=drupalSettings] * An object containing settings for the current context. If none given, diff --git a/core/modules/block/js/block.js b/core/modules/block/js/block.js index 9e66a759232e..7de67a81430c 100644 --- a/core/modules/block/js/block.js +++ b/core/modules/block/js/block.js @@ -24,7 +24,7 @@ /** * Create a summary for checkboxes in the provided context. * - * @param {HTMLDocument|HTMLElement} context + * @param {Document|HTMLElement} context * A context where one would find checkboxes to summarize. * * @return {string} -- GitLab