mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 15:19:40 -05:00
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
This commit is contained in:
parent
9273cbb786
commit
8d6dbda90e
1 changed files with 4 additions and 4 deletions
|
@ -516,7 +516,7 @@ function isShadowRoot(nodeImpl) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isSlotable(
|
function isSlottable(
|
||||||
nodeImpl,
|
nodeImpl,
|
||||||
) {
|
) {
|
||||||
return Boolean(isNode(nodeImpl) && ReflectHas(nodeImpl, "assignedSlot"));
|
return Boolean(isNode(nodeImpl) && ReflectHas(nodeImpl, "assignedSlot"));
|
||||||
|
@ -586,7 +586,7 @@ function dispatch(
|
||||||
}
|
}
|
||||||
|
|
||||||
let slotInClosedTree = false;
|
let slotInClosedTree = false;
|
||||||
let slotable = isSlotable(targetImpl) && getAssignedSlot(targetImpl)
|
let slottable = isSlottable(targetImpl) && getAssignedSlot(targetImpl)
|
||||||
? targetImpl
|
? targetImpl
|
||||||
: null;
|
: null;
|
||||||
let parent = getParent(targetImpl);
|
let parent = getParent(targetImpl);
|
||||||
|
@ -594,8 +594,8 @@ function dispatch(
|
||||||
// Populate event path
|
// Populate event path
|
||||||
// https://dom.spec.whatwg.org/#event-path
|
// https://dom.spec.whatwg.org/#event-path
|
||||||
while (parent !== null) {
|
while (parent !== null) {
|
||||||
if (slotable !== null) {
|
if (slottable !== null) {
|
||||||
slotable = null;
|
slottable = null;
|
||||||
|
|
||||||
const parentRoot = getRoot(parent);
|
const parentRoot = getRoot(parent);
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in a new issue