Add steps for shadow roots and slots (#167) · w3c/accname@67ca225 (original) (raw)
`@@ -334,6 +334,8 @@
Terminology
`
334
334
`
`
335
335
`
`
336
336
`
root node
's text equivalent. Initially, the current node
is the root node
, but at later stages is either some descendant of the root node
, or another referenced node.`
``
337
`+
`
``
338
`+
`
337
339
`
`
338
340
`
`
339
341
`
`
`@@ -496,9 +498,17 @@
Computation steps
`
496
498
`
::after
pseudo elements, User agents MUST append CSS textual content, without a space, to the textual content of the current node
. `
497
499
`
`
498
500
`
`
499
``
`-
current node
:
`
``
501
`+
`
``
502
`+
rendered child nodes
of the current node
:
`
500
503
`
- Set the
current node
to the child node. - If the
current node
has an attached [=shadow root=], set therendered child nodes
to be the child nodes of the [=shadow root=]. - Otherwise, if the
current node
is a [=slot=] with [=slot/assigned nodes=], set therendered child nodes
to be the [=slot/assigned nodes=] of thecurrent node
. - Otherwise, set the
rendered child nodes
to be the child nodes of thecurrent node
.
`
501
``
`-
`
``
504
`+
`
``
505
`+
`
``
506
`+
`
``
507
`+
`
``
508
`+
`
``
509
`+
rendered child node
of the current node
:
`
``
510
`+
- Set the
current node
to therendered child node
. - Compute the text alternative of the
current node
beginning with the overall Computation step. Set theresult
to that text alternative. - Append the
result
to theaccumulated text
.
`
``
511
`+
`
502
512
`
`
503
513
`
`
504
514
`
`