File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,8 @@ describe('Selection', function () {
348
348
let selection = new Selection ( this . oneWord , range )
349
349
// link foo
350
350
selection . link ( 'https://livingdocs.io' )
351
+ this . oneWord . normalize ( )
352
+
351
353
// select 1 char more to the right (b)
352
354
range = createRange ( )
353
355
// Note: we need to use firstChild twice to get the textNode inside the a tag which is
@@ -370,7 +372,8 @@ describe('Selection', function () {
370
372
let selection = new Selection ( this . oneWord , range )
371
373
// link bar
372
374
selection . link ( 'https://livingdocs.io' )
373
- console . log ( getHtml ( this . oneWord ) )
375
+ this . oneWord . normalize ( )
376
+
374
377
// select 1 char more to the left (o)
375
378
range = createRange ( )
376
379
range . setStart ( this . oneWord . firstChild , 2 )
You can’t perform that action at this time.
0 commit comments