wp/wp-includes/js/dist/html-entities.js
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
--- a/wp/wp-includes/js/dist/html-entities.js	Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/js/dist/html-entities.js	Tue Dec 15 13:49:49 2020 +0100
@@ -82,17 +82,18 @@
 /******/
 /******/
 /******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = 342);
+/******/ 	return __webpack_require__(__webpack_require__.s = 422);
 /******/ })
 /************************************************************************/
 /******/ ({
 
-/***/ 342:
+/***/ 422:
 /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 "use strict";
 __webpack_require__.r(__webpack_exports__);
 /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "decodeEntities", function() { return decodeEntities; });
+/** @type {HTMLTextAreaElement} */
 var _decodeTextArea;
 /**
  * Decodes the HTML entities from a given string.
@@ -127,7 +128,28 @@
   _decodeTextArea.innerHTML = html;
   var decoded = _decodeTextArea.textContent;
   _decodeTextArea.innerHTML = '';
-  return decoded;
+  /**
+   * Cast to string, HTMLTextAreaElement should always have `string` textContent.
+   *
+   * > The `textContent` property of the `Node` interface represents the text content of the
+   * > node and its descendants.
+   * >
+   * > Value: A string or `null`
+   * >
+   * > * If the node is a `document` or a Doctype, `textContent` returns `null`.
+   * > * If the node is a CDATA section, comment, processing instruction, or text node,
+   * >   textContent returns the text inside the node, i.e., the `Node.nodeValue`.
+   * > * For other node types, `textContent returns the concatenation of the textContent of
+   * >   every child node, excluding comments and processing instructions. (This is an empty
+   * >   string if the node has no children.)
+   *
+   * @see https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
+   */
+
+  return (
+    /** @type {string} */
+    decoded
+  );
 }