diff --git a/core/misc/drupal.js b/core/misc/drupal.js
index 7d0f3b12c7976577af1f53d0c6c2bd3bd84c230b..4a8ab09de5987d76b2bab06f3230d48dd615eab7 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 9e66a759232ed4479a5498d24d799fe31113b1a3..7de67a81430c84165756a55441afe76905d6e021 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}