• Leszek Swirski's avatar
    [turbolizer] Use textContent to set code view · 7b8d8e9a
    Leszek Swirski authored
    Previously code view was set using innerHTML. This would cause problems
    for html characters in the code -- in particular, '<' without a space
    after it would start new HTML tags, and the code following it wouldn't
    be visible.
    
    Now, the source text is set using textContent, which doesn't parse the
    value as HTML and implicitly escapes any HTML characters in the code.
    
    Change-Id: I612a18c37bbb4da6a87063bb39d7f7123a3c4c0d
    Reviewed-on: https://chromium-review.googlesource.com/461826Reviewed-by: 's avatarDaniel Clifford <danno@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44233}
    7b8d8e9a
Name
Last commit
Last update
..
OWNERS Loading commit data...
README.md Loading commit data...
code-view.js Loading commit data...
constants.js Loading commit data...
disassembly-view.js Loading commit data...
edge.js Loading commit data...
empty-view.js Loading commit data...
expand-all.jpg Loading commit data...
graph-layout.js Loading commit data...
graph-view.js Loading commit data...
hide-selected.png Loading commit data...
hide-unselected.png Loading commit data...
index.html Loading commit data...
lang-disassembly.js Loading commit data...
layout-icon.png Loading commit data...
left-arrow.png Loading commit data...
live.png Loading commit data...
monkey.js Loading commit data...
node.js Loading commit data...
right-arrow.png Loading commit data...
schedule-view.js Loading commit data...
search.png Loading commit data...
search2.png Loading commit data...
selection-broker.js Loading commit data...
selection.js Loading commit data...
text-view.js Loading commit data...
turbo-visualizer.css Loading commit data...
turbo-visualizer.js Loading commit data...
types.png Loading commit data...
upload-icon.png Loading commit data...
util.js Loading commit data...
view.js Loading commit data...