diff tests/test-highlight.t @ 37829:2ead51dcde71 stable

paper: don't register click handlers with inline javascript (issue5812) The use of inline href="javascript:" undermines CSP policies that don't allow inline javascript. This commit changes the registering of the diffstat and line wrapping toggle handlers to the the global DOMContentLoaded handler, thus eliminating all inline javascript from the paper template. Differential Revision: https://phab.mercurial-scm.org/D3437
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 02 May 2018 19:16:01 -0700
parents a1de4ffaa7a8
children 82ae4f471254
line wrap: on
line diff
--- a/tests/test-highlight.t	Mon Apr 30 17:28:59 2018 -0700
+++ b/tests/test-highlight.t	Wed May 02 19:16:01 2018 -0700
@@ -146,7 +146,7 @@
   </table>
   
   <div class="overflow">
-  <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div>
+  <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink">on</a></div>
   <div class="sourcefirst"> line source</div>
   <pre class="sourcelines stripes4 wrap bottomline"
        data-logurl="/log/tip/primes.py"