From 397397bbea5b73b77cfd3ff6e1d97f62c7c208ce Mon Sep 17 00:00:00 2001 From: Jorge Bernal Date: Tue, 14 Jan 2020 11:04:33 +0100 Subject: [PATCH] Add comment on DOMParser --- src/jsdom-patches.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jsdom-patches.js b/src/jsdom-patches.js index cbba755e5b7972..3fffeb1169a2c1 100644 --- a/src/jsdom-patches.js +++ b/src/jsdom-patches.js @@ -240,6 +240,9 @@ Object.defineProperties( Node.prototype, { } ); class DOMParser { + // This is required for the stripHTML function, but it doesn't necessarily + // conform to the DOM standard. + // See https://github.com/wordpress-mobile/gutenberg-mobile/pull/1771 parseFromString( string ) { return jsdom.html( string ); }