From: Hypolite Petovan Date: Sun, 19 Mar 2023 03:11:28 +0000 (-0400) Subject: Remove extra whitespace in Content\Text\HTMLTest X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=67c0c279aa4279c09ec6753ecd55fdc6c945059d;p=friendica.git Remove extra whitespace in Content\Text\HTMLTest --- diff --git a/tests/src/Content/Text/HTMLTest.php b/tests/src/Content/Text/HTMLTest.php index 3225d7f60a..259d0e6f02 100644 --- a/tests/src/Content/Text/HTMLTest.php +++ b/tests/src/Content/Text/HTMLTest.php @@ -627,13 +627,13 @@ its surprisingly good", e.preventDefault(); // console.log('[id=\"' + this.getAttribute('href') + '\"]'); // console.log(document.getElementById('[id=\"' + this.getAttribute('href') + '\"]')); - + document.querySelector('[ez-toc-data-id=\"' + decodeURI(this.getAttribute('href')) + '\"]').scrollIntoView({ behavior: 'smooth' }); }); }); -}; +}; document.addEventListener('DOMContentLoaded', ezTocScrollScriptJS, false);