Skip to content

Commit 34518ce

Browse files
iliakantheBstar
authored andcommitted
minor fixes
1 parent cdeb566 commit 34518ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2-ui/99-ui-misc/02-selection-range/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ We need to create a range, that:
155155
range.setStart(p.firstChild, 2);
156156
range.setEnd(p.querySelector('b').firstChild, 3);
157157
158-
alert(range); // ample: italic and bol
158+
console.log(range); // ample: italic and bol
159159
160160
// use this range for selection (explained later)
161161
window.getSelection().addRange(range);
@@ -244,7 +244,7 @@ Click buttons to run methods on the selection, "resetExample" to reset it.
244244
let newNode = document.createElement('u');
245245
try {
246246
range.surroundContents(newNode);
247-
} catch(e) { alert(e) }
247+
} catch(e) { console.log(e) }
248248
},
249249
resetExample() {
250250
p.innerHTML = `Example: <i>italic</i> and <b>bold</b>`;

0 commit comments

Comments
 (0)