Skip to content

Commit cb0abc3

Browse files
committed
Conflict fixed on "Selection and Range" page in french language
1 parent 4e32371 commit cb0abc3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,8 @@ From <input id="from" disabled> – To <input id="to" disabled>
407407
408408
Il existe deux approches pour copier le contenu sélectionné :
409409
410-
<<<<<<< HEAD
411410
1. Nous pouvons utiliser `document.getSelection().toString()` pour le récupérer sous forme de texte.
412411
2. Sinon, pour copier le DOM complet, par exemple si nous devons garder le formatage, nous pouvons obtenir les plages sous-jacentes avec `getRangesAt(...)`. Un objet `Range`, à son tour, a la méthode `cloneContents()` qui clone son contenu et retourne un objet `DocumentFragment`, que nous pouvons insérer ailleurs.
413-
=======
414-
1. We can use `document.getSelection().toString()` to get it as text.
415-
2. Otherwise, to copy the full DOM, e.g. if we need to keep formatting, we can get the underlying ranges with `getRangeAt(...)`. A `Range` object, in turn, has `cloneContents()` method that clones its content and returns as `DocumentFragment` object, that we can insert elsewhere.
416-
>>>>>>> 285083fc71ee3a7cf55fd8acac9c91ac6f62105c
417412
418413
Voici la démonstration de la copie du contenu sélectionné à la fois comme texte et comme noeuds DOM :
419414

0 commit comments

Comments
 (0)