Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a43c18f

Browse files
committed
minor fixes
1 parent 2b79ab1 commit a43c18f

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)

AltStyle によって変換されたページ (->オリジナル) /