We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b79ab1 commit a43c18fCopy full SHA for a43c18f
2-ui/99-ui-misc/02-selection-range/article.md
@@ -155,7 +155,7 @@ We need to create a range, that:
155
range.setStart(p.firstChild, 2);
156
range.setEnd(p.querySelector('b').firstChild, 3);
157
158
- alert(range); // ample: italic and bol
+ console.log(range); // ample: italic and bol
159
160
// use this range for selection (explained later)
161
window.getSelection().addRange(range);
@@ -244,7 +244,7 @@ Click buttons to run methods on the selection, "resetExample" to reset it.
244
let newNode = document.createElement('u');
245
try {
246
range.surroundContents(newNode);
247
- } catch(e) { alert(e) }
+ } catch(e) { console.log(e) }
248
},
249
resetExample() {
250
p.innerHTML = `Example: <i>italic</i> and <b>bold</b>`;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments