From 08cd7a7d0ffd0668f1b5c47851c3c4330797a66e Mon Sep 17 00:00:00 2001 From: Gerben Date: Thu, 20 Aug 2020 13:44:42 +0200 Subject: [PATCH] Add example with multiple targets to demo. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As the polyfill uses the window’s selection to highlight the target(s), this only works in Firefox, as other browsers do not support selections having multiple ranges. --- demo.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demo.html b/demo.html index 24ec5cb..3c2966b 100644 --- a/demo.html +++ b/demo.html @@ -89,6 +89,9 @@
  • Text between two phrases in different block elements
  • +
  • + Multiple pieces of text (only works in Firefox) +
  • Select text between start and end of a long, uninterrupted string (fails)