Skip to content

Commit 8b4bdb0

Browse files
committed
Review feedback: Clarify algorithm.
1 parent 7f6e277 commit 8b4bdb0

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

index.bs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,9 +1004,16 @@ beginning with |node|. It consistes of these steps:
10041004
1. [=Assert=]: |node| does not [=implement=] {{Document}}.
10051005
1. Call [=sanitize core=] on |child| with |configuration| and
10061006
|handleJavascriptNavigationUrls|.
1007-
1. Let |fragment| be the result of [=convert nodes into a node=]
1008-
given |child|'s [=tree/children=] and |node|'s [=node document=].
1009-
1. [=/Replace=] |child| with |fragment| within |child|'s [=tree/parent=].
1007+
1. Let |fragment| be a new {{DocumentFragment}} whose [=node document=]
1008+
is |node|'s [=node document=].
1009+
1. [=list/iterate|For each=] |innerChild| of |child|'s [=tree/children=],
1010+
[=/append=] |innerChild| to |fragment|.
1011+
1. [=/Replace=] |child| with |fragment| within |node|.
1012+
1013+
NOTE: [=/Replace=] shouldn't throw here, since the structural
1014+
preconditions for successful execution of the algorithm should
1015+
be met.
1016+
10101017
1. [=Continue=].
10111018
1. If |configuration|["{{SanitizerConfig/elements}}"] [=map/exists=]:
10121019
1. If |configuration|["{{SanitizerConfig/elements}}"] does not

0 commit comments

Comments
 (0)