From 8d6dbda90ec0593f3f6e10c6696e320bdff7daa9 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 24 Jun 2023 12:20:14 +0200 Subject: chore(ext/web): align with whatwg/dom typo fix (#19584) The WHATWG DOM specification has corrected the spelling of "slotable" to "slottable".[1] This commit aligns our implementation accordingly. [1]: https://github.com/whatwg/dom/pull/845 --- ext/web/02_event.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/web/02_event.js b/ext/web/02_event.js index 142fa66b2..7ccae1787 100644 --- a/ext/web/02_event.js +++ b/ext/web/02_event.js @@ -516,7 +516,7 @@ function isShadowRoot(nodeImpl) { ); } -function isSlotable( +function isSlottable( nodeImpl, ) { return Boolean(isNode(nodeImpl) && ReflectHas(nodeImpl, "assignedSlot")); @@ -586,7 +586,7 @@ function dispatch( } let slotInClosedTree = false; - let slotable = isSlotable(targetImpl) && getAssignedSlot(targetImpl) + let slottable = isSlottable(targetImpl) && getAssignedSlot(targetImpl) ? targetImpl : null; let parent = getParent(targetImpl); @@ -594,8 +594,8 @@ function dispatch( // Populate event path // https://dom.spec.whatwg.org/#event-path while (parent !== null) { - if (slotable !== null) { - slotable = null; + if (slottable !== null) { + slottable = null; const parentRoot = getRoot(parent); if ( -- cgit v1.2.3