From 73e7f3371fb63f686d089851d6746e92e7d3c22a Mon Sep 17 00:00:00 2001 From: chansuke Date: Wed, 18 Nov 2020 19:07:16 +0900 Subject: [PATCH] Correct boundary point comparison in set the start or end Fixes #924. --- dom.bs | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/dom.bs b/dom.bs index e7463d8a0..b64858227 100644 --- a/dom.bs +++ b/dom.bs @@ -7803,14 +7803,14 @@ steps:
If these steps were invoked as "set the start"
    -
  1. If bp is - after the - range's end, or - if range's +
  2. If range's root is not equal to - node's root, set - range's end to - bp. + node's root, + or if bp is + after the + range's end, set + range's end + to bp.
  3. Set range's start to bp. @@ -7818,12 +7818,12 @@ steps:
    If these steps were invoked as "set the end"
      -
    1. If bp is - before the - range's start, - or if range's +
    2. If range's root is not equal to - node's root, set + node's root, + or if bp is + before the + range's start, set range's start to bp. @@ -10106,7 +10106,8 @@ Yash Handa, Yehuda Katz, Yoav Weiss, Yoichi Osato, -Yoshinori Sano, and +Yoshinori Sano, +Yusuke Abe, and Zack Weinberg for being awesome!