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:
Graph.prototype.getParentByName=function(x,L,Q){for(;null!=x&&x.nodeName!=L;){if(x==Q)return null;x=x.parentNode}return x};Graph.prototype.getParentByNames=function(x,L,Q){for(;null!=x&&!(0<=mxUtils.indexOf(L,x.nodeName));){if(x==Q)return null;x=x.parentNode}return x};Graph.prototype.selectNode=function(x){var L=null;if(window.getSelection){if(L=window.getSelection(),L.getRangeAt&&L.rangeCount){var Q=document.createRange();Q.selectNode(x);L.removeAllRanges();L.addRange(Q)}}else(L=document.selection)&&