Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 936cd2b

Browse files
author
mikesamuel
committed
fixes for fixes for Safari 2.0
1 parent 6c38b86 commit 936cd2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prettify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function PR_getInnerHtml(node) {
278278
var content = node.innerHTML;
279279
// XMP tags contain unescaped entities so require special handling.
280280
if (PR_isRawContent(node)) {
281-
content = PR_textToHtml(html);
281+
content = PR_textToHtml(content);
282282
}
283283
return content;
284284
}
@@ -1388,7 +1388,7 @@ function prettyPrint() {
13881388
var newContent = prettyPrintOne(content);
13891389

13901390
// push the prettified html back into the tag.
1391-
if (PR_isRawContent(cs)) {
1391+
if (!PR_isRawContent(cs)) {
13921392
// just replace the old html with the new
13931393
cs.innerHTML = newContent;
13941394
} else {

0 commit comments

Comments
 (0)