From bb30d16be620b09e7020bbb824b93cedfa4bbd6a Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 18 Nov 2024 11:59:36 +0100 Subject: [PATCH] Editorial: break from the inner invoke loop rather than returning This is slightly cleaner and less confusing (to me anyway). --- dom.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom.bs b/dom.bs index 30b5e825..50c4403c 100644 --- a/dom.bs +++ b/dom.bs @@ -1655,8 +1655,8 @@ and an optional legacyOutputDidListenersThrowFlag, run these steps:
  • If global is a {{Window}} object, then set global's current event to currentEvent. -

  • If event's stop immediate propagation flag is set, then return - found. +

  • If event's stop immediate propagation flag is set, then + break.

  • Return found.