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:
this.graph.isCellSelected(F);return K};mxPopupMenuHandler.prototype.getCellForPopupEvent=function(E){E=E.getCell();for(var M=this.graph.getModel(),T=M.getParent(E),F=this.graph.view.getState(T),K=this.graph.isCellSelected(E);null!=F&&(M.isVertex(T)||M.isEdge(T));){var R=this.graph.isCellSelected(T);K=K||R;if(R||!K&&(this.graph.isTableCell(E)||this.graph.isTableRow(E)))E=T;T=M.getParent(T)}return E}})();EditorUi=function(b,e,g){mxEventSource.call(this);this.destroyFunctions=[];this.editor=b||new Editor;this.container=e||document.body;var p=this,y=this.editor.graph;y.lightbox=g;var q=y.getGraphBounds;y.getGraphBounds=function(){var P=q.apply(this,arguments),V=this.backgroundImage;if(null!=V&&null!=V.width&&null!=V.height){var l=this.view.translate,B=this.view.scale;P=mxRectangle.fromRectangle(P);P.add(new mxRectangle((l.x+V.x)*B,(l.y+V.y)*B,V.width*B,V.height*B))}return P};y.useCssTransforms&&(this.lazyZoomDelay=