Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
null==E&&(E=T.hasAttribute(M)?null!=T.getAttribute(M)?T.getAttribute(M):"":null)),T=this.model.getParent(T);null==E&&(E=this.getGlobalVariable(M));null==E&&null!=g&&(E=g[M])}p.push(e.substring(y,match.index)+(null!=E?E:q));y=match.index+q.length}}p.push(e.substring(y))}return p.join("")};Graph.prototype.restoreSelection=function(b){if(null!=b&&0<b.length){for(var e=[],g=0;g<b.length;g++){var p=this.model.getCell(b[g].id);null!=p&&e.push(p)}this.setSelectionCells(e)}else this.clearSelection()};