@@ -2881,15 +2881,15 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
2881
2881
setActiveTab ( 0 ) ;
2882
2882
2883
2883
div . scrollTop = 0 ;
2884
- div . innerHTML = '' ;
2884
+ div . innerText = '' ;
2885
2885
i0 = 0 ;
2886
2886
2887
2887
if ( oldTemplates != templates )
2888
2888
{
2889
2889
templates = oldTemplates ;
2890
2890
categories = origCategories ;
2891
2891
customCatCount = origCustomCatCount ;
2892
- list . innerHTML = '' ;
2892
+ list . innerText = '' ;
2893
2893
initUi ( ) ;
2894
2894
oldTemplates = null ;
2895
2895
}
@@ -2912,7 +2912,7 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
2912
2912
}
2913
2913
2914
2914
div . scrollTop = 0 ;
2915
- div . innerHTML = '' ;
2915
+ div . innerText = '' ;
2916
2916
spinner . spin ( div ) ;
2917
2917
2918
2918
var callback2 = function ( docList , errorMsg , searchImportCats )
@@ -2938,13 +2938,13 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
2938
2938
}
2939
2939
else
2940
2940
{
2941
- div . innerHTML = '' ;
2941
+ div . innerText = '' ;
2942
2942
2943
2943
if ( importListsCount > 0 )
2944
2944
{
2945
2945
list . style . display = '' ;
2946
2946
div . style . left = '160px' ;
2947
- list . innerHTML = '' ;
2947
+ list . innerText = '' ;
2948
2948
2949
2949
customCatCount = 0 ;
2950
2950
categories = { 'draw.io' : docList } ;
@@ -3628,7 +3628,7 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
3628
3628
}
3629
3629
3630
3630
div . scrollTop = 0 ;
3631
- div . innerHTML = '' ;
3631
+ div . innerText = '' ;
3632
3632
i0 = 0 ;
3633
3633
var msgDiv = document . createElement ( 'div' ) ;
3634
3634
msgDiv . style . cssText = 'border: 1px solid #D3D3D3; padding: 6px; background: #F5F5F5;' ;
@@ -3704,7 +3704,7 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
3704
3704
currentEntry . style . backgroundColor = leftHighlight ;
3705
3705
3706
3706
div . scrollTop = 0 ;
3707
- div . innerHTML = '' ;
3707
+ div . innerText = '' ;
3708
3708
i0 = 0 ;
3709
3709
3710
3710
templates = customCats [ cat2 ] ;
@@ -3749,7 +3749,7 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
3749
3749
currentEntry . style . backgroundColor = leftHighlight ;
3750
3750
3751
3751
div . scrollTop = 0 ;
3752
- div . innerHTML = '' ;
3752
+ div . innerText = '' ;
3753
3753
i0 = 0 ;
3754
3754
3755
3755
templates = subCat ? subCategories [ cat ] [ subCat ] : categories [ cat ] ;
@@ -5955,7 +5955,7 @@ var RevisionDialog = function(editorUi, revs, restoreFn)
5955
5955
// Gets current state of page with given ID
5956
5956
var curr = currentDiagrams [ diagrams [ currentPage ] . getAttribute ( 'id' ) ] ;
5957
5957
mxUtils . setOpacity ( compareBtn , 20 ) ;
5958
- errorNode . innerHTML = '' ;
5958
+ errorNode . innerText = '' ;
5959
5959
5960
5960
if ( curr == null )
5961
5961
{
@@ -5977,7 +5977,7 @@ var RevisionDialog = function(editorUi, revs, restoreFn)
5977
5977
} , null , function ( )
5978
5978
{
5979
5979
mxUtils . setOpacity ( compareBtn , 60 ) ;
5980
- errorNode . innerHTML = '' ;
5980
+ errorNode . innerText = '' ;
5981
5981
5982
5982
if ( container . style . display == 'none' )
5983
5983
{
@@ -6232,14 +6232,14 @@ var RevisionDialog = function(editorUi, revs, restoreFn)
6232
6232
function updateGraph ( xml )
6233
6233
{
6234
6234
spinner . stop ( ) ;
6235
- errorNode . innerHTML = '' ;
6235
+ errorNode . innerText = '' ;
6236
6236
var doc = mxUtils . parseXml ( xml ) ;
6237
6237
var node = editorUi . editor . extractGraphModel ( doc . documentElement , true ) ;
6238
6238
6239
6239
if ( node != null )
6240
6240
{
6241
6241
pageSelect . style . display = 'none' ;
6242
- pageSelect . innerHTML = '' ;
6242
+ pageSelect . innerText = '' ;
6243
6243
currentDoc = doc ;
6244
6244
currentXml = xml ;
6245
6245
parseSelectFunction = null ;
@@ -6343,7 +6343,7 @@ var RevisionDialog = function(editorUi, revs, restoreFn)
6343
6343
shortUser = shortUser . substring ( 0 , 20 ) + '...' ;
6344
6344
}
6345
6345
6346
- fileInfo . innerHTML = '' ;
6346
+ fileInfo . innerText = '' ;
6347
6347
mxUtils . write ( fileInfo , ( ( shortUser != null ) ?
6348
6348
( shortUser + ' ' ) : '' ) + ts . toLocaleDateString ( ) +
6349
6349
' ' + ts . toLocaleTimeString ( ) ) ;
@@ -6376,8 +6376,8 @@ var RevisionDialog = function(editorUi, revs, restoreFn)
6376
6376
else
6377
6377
{
6378
6378
pageSelect . style . display = 'none' ;
6379
- pageSelect . innerHTML = '' ;
6380
- fileInfo . innerHTML = '' ;
6379
+ pageSelect . innerText = '' ;
6380
+ fileInfo . innerText = '' ;
6381
6381
mxUtils . write ( fileInfo , mxResources . get ( 'errorLoadingFile' ) ) ;
6382
6382
mxUtils . write ( errorNode , mxResources . get ( 'errorLoadingFile' ) ) ;
6383
6383
}
@@ -6403,7 +6403,7 @@ var RevisionDialog = function(editorUi, revs, restoreFn)
6403
6403
fileInfo . removeAttribute ( 'title' ) ;
6404
6404
fileInfo . innerHTML = mxUtils . htmlEntities ( mxResources . get ( 'loading' ) + '...' ) ;
6405
6405
container . style . backgroundColor = graph . defaultPageBackgroundColor ;
6406
- errorNode . innerHTML = '' ;
6406
+ errorNode . innerText = '' ;
6407
6407
graph . getModel ( ) . clear ( ) ;
6408
6408
6409
6409
restoreBtn . setAttribute ( 'disabled' , 'disabled' ) ;
@@ -6444,8 +6444,8 @@ var RevisionDialog = function(editorUi, revs, restoreFn)
6444
6444
{
6445
6445
spinner . stop ( ) ;
6446
6446
pageSelect . style . display = 'none' ;
6447
- pageSelect . innerHTML = '' ;
6448
- fileInfo . innerHTML = '' ;
6447
+ pageSelect . innerText = '' ;
6448
+ fileInfo . innerText = '' ;
6449
6449
mxUtils . write ( fileInfo , mxResources . get ( 'errorLoadingFile' ) ) ;
6450
6450
mxUtils . write ( errorNode , mxResources . get ( 'errorLoadingFile' ) ) ;
6451
6451
} ) ;
@@ -6822,7 +6822,7 @@ var DraftDialog = function(editorUi, title, xml, editFn, discardFn, editLabel, d
6822
6822
parseDiagram ( diagrams [ currentPage ] ) ;
6823
6823
}
6824
6824
6825
- pageSelect . innerHTML = '' ;
6825
+ pageSelect . innerText = '' ;
6826
6826
6827
6827
if ( diagrams . length > 1 )
6828
6828
{
@@ -7043,7 +7043,7 @@ var FindWindow = function(ui, x, y, w, h, withReplace)
7043
7043
7044
7044
function search ( internalCall , trySameCell , stayOnPage )
7045
7045
{
7046
- replAllNotif . innerHTML = '' ;
7046
+ replAllNotif . innerText = '' ;
7047
7047
var cells = graph . model . getDescendants ( graph . model . getRoot ( ) ) ;
7048
7048
var searchStr = searchInput . value . toLowerCase ( ) ;
7049
7049
var re = ( regexInput . checked ) ? new RegExp ( searchStr ) : null ;
@@ -7249,7 +7249,7 @@ var FindWindow = function(ui, x, y, w, h, withReplace)
7249
7249
7250
7250
var resetBtn = mxUtils . button ( mxResources . get ( 'reset' ) , function ( )
7251
7251
{
7252
- replAllNotif . innerHTML = '' ;
7252
+ replAllNotif . innerText = '' ;
7253
7253
searchInput . value = '' ;
7254
7254
searchInput . style . backgroundColor = '' ;
7255
7255
@@ -7444,7 +7444,7 @@ var FindWindow = function(ui, x, y, w, h, withReplace)
7444
7444
7445
7445
var replaceAllBtn = mxUtils . button ( mxResources . get ( 'replaceAll' ) , function ( )
7446
7446
{
7447
- replAllNotif . innerHTML = '' ;
7447
+ replAllNotif . innerText = '' ;
7448
7448
7449
7449
if ( replaceInput . value )
7450
7450
{
@@ -7727,7 +7727,7 @@ var FreehandWindow = function(editorUi, x, y, w, h, withBrush)
7727
7727
7728
7728
graph . addListener ( 'freehandStateChanged' , mxUtils . bind ( this , function ( )
7729
7729
{
7730
- startBtn . innerHTML = '' ;
7730
+ startBtn . innerText = '' ;
7731
7731
mxUtils . write ( startBtn , mxResources . get ( graph . freehand . isDrawing ( ) ? 'stopDrawing' : 'startDrawing' ) ) ;
7732
7732
startBtn . setAttribute ( 'title' , mxResources . get ( graph . freehand . isDrawing ( ) ? 'stopDrawing' : 'startDrawing' ) ) ;
7733
7733
startBtn . className = 'geBtn' + ( ! graph . freehand . isDrawing ( ) ? ' gePrimaryBtn' : '' ) ;
@@ -8072,7 +8072,7 @@ var MoreShapesDialog = function(editorUi, expanded, entries)
8072
8072
preview . style . textAlign = 'center' ;
8073
8073
preview . style . padding = '0px' ;
8074
8074
preview . style . color = '' ;
8075
- preview . innerHTML = '' ;
8075
+ preview . innerText = '' ;
8076
8076
8077
8077
if ( entry . desc != null )
8078
8078
{
@@ -8474,7 +8474,7 @@ var PluginsDialog = function(editorUi, addFn, delFn, closeOnly)
8474
8474
}
8475
8475
else
8476
8476
{
8477
- inner . innerHTML = '' ;
8477
+ inner . innerText = '' ;
8478
8478
8479
8479
for ( var i = 0 ; i < plugins . length ; i ++ )
8480
8480
{
@@ -9580,7 +9580,7 @@ var LibraryDialog = function(editorUi, name, library, initialImages, file, mode)
9580
9580
9581
9581
function updateLabel ( )
9582
9582
{
9583
- label . innerHTML = '' ;
9583
+ label . innerText = '' ;
9584
9584
label . style . cursor = 'pointer' ;
9585
9585
label . style . whiteSpace = 'nowrap' ;
9586
9586
label . style . textOverflow = 'ellipsis' ;
@@ -9636,7 +9636,7 @@ var LibraryDialog = function(editorUi, name, library, initialImages, file, mode)
9636
9636
9637
9637
if ( entry . title == null || entry . title . length == 0 )
9638
9638
{
9639
- label . innerHTML = '' ;
9639
+ label . innerText = '' ;
9640
9640
}
9641
9641
9642
9642
label . style . textOverflow = '' ;
@@ -10934,7 +10934,7 @@ var TemplatesDialog = function(editorUi, callback, cancelCallback,
10934
10934
10935
10935
if ( ! internalCall )
10936
10936
{
10937
- diagramsTiles . innerHTML = '' ;
10937
+ diagramsTiles . innerText = '' ;
10938
10938
swapActiveItem ( ) ;
10939
10939
curDiagList = diagrams ;
10940
10940
curSearchImportCats = searchImportCats ;
@@ -11651,7 +11651,7 @@ var TemplatesDialog = function(editorUi, callback, cancelCallback,
11651
11651
if ( recentDocsCallback )
11652
11652
{
11653
11653
tempDlgContent . scrollTop = 0 ;
11654
- diagramsTiles . innerHTML = '' ;
11654
+ diagramsTiles . innerText = '' ;
11655
11655
spinner . spin ( diagramsTiles ) ;
11656
11656
cancelPendingCall = false ;
11657
11657
callInitiated = true ;
@@ -11796,7 +11796,7 @@ var TemplatesDialog = function(editorUi, callback, cancelCallback,
11796
11796
11797
11797
deselectTempCat ( ) ;
11798
11798
tempDlgContent . scrollTop = 0 ;
11799
- diagramsTiles . innerHTML = '' ;
11799
+ diagramsTiles . innerText = '' ;
11800
11800
diagramsListTitle . innerHTML = mxUtils . htmlEntities ( mxResources . get ( 'searchResults' ) ) +
11801
11801
' "' + mxUtils . htmlEntities ( searchStr ) + '"' ;
11802
11802
delayTimer = null ;
@@ -12499,7 +12499,7 @@ AspectDialog.prototype.createPageItem = function(pageId, pageName, pageNode)
12499
12499
this . selectedItem = $listItem ;
12500
12500
this . selectedPage = pageId ;
12501
12501
$listItem . className += ' geAspectDlgListItemSelected' ;
12502
- this . layersContainer . innerHTML = '' ;
12502
+ this . layersContainer . innerText = '' ;
12503
12503
this . selectedLayers = { } ;
12504
12504
this . okBtn . setAttribute ( 'disabled' , 'disabled' ) ;
12505
12505
0 commit comments