diff --git a/source b/source index 84638b6d657..73cb032dedd 100644 --- a/source +++ b/source @@ -62186,35 +62186,6 @@ interface HTMLDetailsElement : HTMLElement { -
The ancestor details revealing algorithm is to run the following steps on - currentNode:
- -While currentNode has a parent node within the flat tree:
- -If currentNode is slotted into the second slot of a details
- element:
Set currentNode to the details
element which
- currentNode is slotted into.
If the open
attribute is not set on
- currentNode, then set
- the open
attribute on currentNode to the
- empty string.
Otherwise, set currentNode to the parent node of - currentNode within the flat tree.
The following example shows the details
element being used to hide technical
@@ -80398,8 +80369,7 @@ END:VCARD
data-x="navigate-fragid">fragment navigation. When these features attempt to scroll to a
target which is in the element's subtree, the user agent will remove the hidden
attribute in order to reveal the content before scrolling to
- it by running the ancestor hidden-until-found revealing algorithm on the target
- node.
The ancestor hidden-until-found revealing algorithm is to run the following steps on - currentNode:
+An ancestor reveal pair is a tuple consisting of a node and a string.
+ +The ancestor revealing algorithm given a node target is:
Let ancestorsToReveal be « ».
Let ancestor be target.
While ancestor has a parent node within the flat tree:
+ +If ancestor has a hidden
attribute in the
+ Hidden Until Found state, then append (ancestor, "until-found
")
+ to ancestorsToReveal.
If ancestor is slotted into the second slot of a details
+ element which does not have an open
attribute, then
+ append (ancestor's parent node, "details
") to ancestorsToReveal.
Set ancestor to the parent node of ancestor within the + flat tree.
While currentNode has a parent node within the flat tree:
+For each (ancestorToReveal, revealType) of + ancestorsToReveal:
If ancestorToReveal is not connected, then return.
If currentNode has the hidden
attribute in the
- Hidden Until Found state, then:
If revealType is "until-found
":
If ancestorToReveal's hidden
attribute is
+ not in the Hidden Until Found state, then
+ return.
Fire an event named beforematch
at currentNode with the beforematch
at ancestorToReveal with the bubbles
attribute initialized to true.
If ancestorToReveal is not connected, then return.
If ancestorToReveal's hidden
attribute is
+ not in the Hidden Until Found state, then
+ return.
Remove the hidden
attribute from
- currentNode.
Set currentNode to the parent node of currentNode within the - flat tree.
Otherwise:
+ +Assert: revealType is "details
".
If ancestorToReveal has an open
+ attribute, then return.
Set ancestorToReveal's open
+ attribute to the empty string.
Queue a global task on the user interaction task source given - node's relevant global object to run the following steps:
- -Run the ancestor details revealing algorithm on node.
Run the ancestor hidden-until-found revealing algorithm on - node.
@@ -106727,10 +106740,7 @@ location.href = '#foo';
Set document's target element to target.
Run the ancestor details revealing algorithm on target.
Run the ancestor hidden-until-found revealing algorithm on - target.
Run the ancestor revealing algorithm on target.
Scroll target into view, with behavior set to "auto", block set to "start", and inline