From fd5d4762c33c40f03a71c496a3e942a16ce72a3a Mon Sep 17 00:00:00 2001 From: Miguel Fonseca Date: Thu, 5 Aug 2021 18:28:01 +0100 Subject: [PATCH] Documentation: isEquivalentHTML: Fix incorrect spec As of #22506 (May 2020), `isEquivalentHTML` short-circuits if its two given strings are identical, and thus no longer treats invalid HTML differently. Remove the mention of special handling, which had been introduced in #8304 (August 2018). --- packages/blocks/src/api/validation/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/blocks/src/api/validation/index.js b/packages/blocks/src/api/validation/index.js index 6d576df9f6caf4..3a6b4616f401d4 100644 --- a/packages/blocks/src/api/validation/index.js +++ b/packages/blocks/src/api/validation/index.js @@ -590,8 +590,7 @@ export function isClosedByToken( currentToken, nextToken ) { /** * Returns true if the given HTML strings are effectively equivalent, or - * false otherwise. Invalid HTML is not considered equivalent, even if the - * strings directly match. + * false otherwise. * * @param {string} actual Actual HTML string. * @param {string} expected Expected HTML string.