Skip to content

Commit

Permalink
Use .innerHTML instead of .innerText
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypersonic committed May 10, 2016
1 parent 72e7604 commit c2ee34e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions webui/static/js/funclist.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ var load_function_list = function () {
current_view.functions = Array.from(functions);
for (var i = 0; i < functions.length; i++) {
var node = document.createElement('span');
node.innerText = functions[i];
node.className = 'functionlist-entry';
node.innerHTML = functions[i];
functions[i] = node;
}

Expand All @@ -49,7 +49,7 @@ var load_function_list = function () {

// Sort the list of functions when we load the page

functions.sort(function(a, b) {return (a.innerText < b.innerText) ? 1 : -1;});
functions.sort(function(a, b) {return (a.innerHTML < b.innerHTML) ? 1 : -1;});
for (var i = 0; i < functions.length; i++) {
function_list.appendChild(functions[i]);
}
Expand All @@ -59,7 +59,7 @@ var load_function_list = function () {
func.addEventListener('click', function(e) {
var func_el = e.target;
console.log(e);
load_function(func_el.innerText);
load_function(func_el.innerHTML);
});
}
});
Expand All @@ -71,7 +71,7 @@ var load_function = function(name) {
var disas = document.getElementById('disas');
current_view.function_name = func.name;
$.get('/dis/'+func.name, function(data) {
disas.innerText = data;
disas.innerHTML = data;
layout_bbs(func);
});
load_xrefs_menu(name);
Expand Down Expand Up @@ -261,7 +261,7 @@ var load_xrefs_menu = function(function_name) {
list.appendChild(li);
li.addEventListener('click', function(e) {
var func_el = e.target;
load_function(func_el.innerText);
load_function(func_el.innerHTML);
});
});

Expand Down

0 comments on commit c2ee34e

Please sign in to comment.