From cb80e1b604892cb8dfca36982aa702eebebfcf4c Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Thu, 2 Jun 2022 17:02:32 -0700 Subject: [PATCH 1/2] Editorial: Add event definition for 'close' A reference to a 'close' event turned into a link back in d2bc4db1 but there wasn't a local definition - it ended up linking into HTML! This is now triggering a Bikeshed warning - yay! Add a minimal local definition for the event type, like the others. --- index.bs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 36f8ca4..f029f86 100644 --- a/index.bs +++ b/index.bs @@ -500,11 +500,13 @@ running. A [=/connection=]'s [=get the parent=] algorithm returns null. -A `versionchange` will be fired at an open +An event with type `versionchange` will be fired at an open [=/connection=] if an attempt is made to upgrade or delete the [=database=]. This gives the [=/connection=] the opportunity to close to allow the upgrade or delete to proceed. +An event with type `close` will be fired at a [=/connection=] if the connection is [=/close a database connection|closed=] abormally. + From 6ec48c208fdd825fb5a5b81ec4df5f226b09e31a Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Thu, 2 Jun 2022 18:02:03 -0700 Subject: [PATCH 2/2] Update index.bs Co-authored-by: Brett Zamir --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index f029f86..8322e04 100644 --- a/index.bs +++ b/index.bs @@ -505,7 +505,7 @@ An event with type `versionchange` will be fired at an open [=database=]. This gives the [=/connection=] the opportunity to close to allow the upgrade or delete to proceed. -An event with type `close` will be fired at a [=/connection=] if the connection is [=/close a database connection|closed=] abormally. +An event with type `close` will be fired at a [=/connection=] if the connection is [=/close a database connection|closed=] abnormally.