bug-librejs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LibreJS false positive on an embedded script generated by ox-publish (or


From: Yuchen Pei
Subject: LibreJS false positive on an embedded script generated by ox-publish (org mode html publishing)
Date: Fri, 18 Jun 2021 22:57:35 +1000
User-agent: mu4e 1.4.13; emacs 27.2

Hello,

Here's an example:

https://www.john2x.com/blog/blogging-with-orgmode.html

<SCRIPT> at line 197 of https://www.john2x.com/blog/blogging-with-orgmode.html:

NONTRIVIAL: nontrivial token: 'document'

Here's the offending script, which is labeled public domain per the guidelines at https://www.gnu.org/software/librejs/free-your-javascript.html (Seciont 3.2.2):

<script type="text/javascript">
// @license magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt Public Domain
<!--/*--><![CDATA[/*><!--*/
    function CodeHighlightOn(elem, id)
    {
      var target = document.getElementById(id);
      if(null != target) {
        elem.classList.add("code-highlighted");
        target.classList.add("code-highlighted");
      }
    }
    function CodeHighlightOff(elem, id)
    {
      var target = document.getElementById(id);
      if(null != target) {
        elem.classList.remove("code-highlighted");
        target.classList.remove("code-highlighted");
      }
    }
   /*]]>*///-->
// @license-end
</script>

Best,
Yuchen
--
PGP Key: 47F9 D050 1E11 8879 9040  4941 2126 7E93 EF86 DFD0

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]