Closed book closed 4 years ago
Another example: the code block of just 1;
is invisible at: https://metacpan.org/pod/Moops#Outer-Sugar
HTML source:
<pre><code> 1;
</code></pre>
Generated dom — slightly different from @book's above, because it still contains the <pre>
element:
<pre>
<div>
<div id="highlighter_437710" class="syntaxhighlighter nogutter perl">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="code">
<div class="container">
<div class="line number1 index0 alt2"> </div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</pre>
Another example https://metacpan.org/pod/distribution/RL/bin/pl#SYNOPSIS
This is clearly caused by the javascript as the contents are visible with javascript disabled.
I was told this is the same bug - https://github.com/syntaxhighlighter/syntaxhighlighter/issues/15 - it was closed.
Closed via #2292. Thanks @gordon-fish for the fix and everyone else for the comments. This bug was squashed before its 6th birthday!
The syntax highlighter that has a few issues with the verbatim text in the perlsecret manual page:
!!
but doesn't}{
but doesn't~~
but doesn'tWhen viewing the source with my browser, the HTML code looks fine:
but when looking with the browser's inspector, the DOM looks like this:
which makes me think that a JavaScript syntax highlighter is used, and when it doesn't understand the given text, it just outputs
. In my opinion, it should just return non-highlighted text.