-
Using IE8 on Win32.
If I put a link inside the <pre>, IE gives an error and doesn't highlight properly. For example:
<pre><code class="cpp">
#include <testpath/<a href="testfile_8h.html">testfile.h</a>>
virtual void testclass::function()
{
...
}
</code></pre>
Mozilla, Opera, and Safari render this fine. -
In fact, it seems that the presence of ANY html tag inside the <pre><code> confuses IE 8.
:( -
Which error it is? Sorry, my ability to test things in IE is quite limited (i.e. I don't have Windows at hand), so I'll need more info to debug it...
-
Я тоже столкнулся с подобной проблемой — любой тег внутри <pre><code> приводит
к сообщению об ошибке в IE и подсветка не выполняется.
Например:
<PRE><CODE class="html">
<B>Тест</B><P>Текст
</CODE></PRE> -
It's strange, but on my Win7 64 in both IE8 64 and 32 there are no errors and highlighting works.
-
This might be not related to tags in code at all. We've fixed a couple of trailing commas that used to confuse IE. To original poster: can you check if the bug still exist in the latest trunk version? You can get it with
bzr co http://softwaremaniacs.org/code/highlight/ -
Yes, IE can't handle things like {"blabla": "123", } so be sure to check for this.
-
Bug is at 338 line in highlight.js, some attribute nodes in IE have null nodeValue.
-
@yuppy99.ya.ru
there are also stream merging problem, and
if(node.attributes[i].nodeValue && (node.attributes[i].nodeValue!='inherit'))
does not solve it =( -
I've pushed a fix that seems correct. Can anyone please test it!
Внимание! Это довольно старый топик, посты в него не попадут в новые, и их никто не увидит. Пишите пост, если хотите просто дополнить топик, а чтобы задать новый вопрос — начните новый.


