Skip to content

Commit eec46c7

Browse files
committed
Inline "set comments"
1 parent 456fa9f commit eec46c7

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

index.bs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,14 @@ The <dfn for="Sanitizer" method export>removeAttribute(|attribute|)</dfn> method
492492
</div>
493493

494494
<div algorithm>
495-
The <dfn for="Sanitizer" method export>setComments(|allow|)</dfn> method steps to [=set comments=] with |allow| and [=this=]'s [=Sanitizer/configuration=].
495+
The <dfn for="Sanitizer" method export>setComments(|allow|)</dfn> method steps are:
496+
497+
1. Let |configuration| be [=this=]'s [=Sanitizer/configuration=].
498+
1. If |configuration|["{{SanitizerConfig/comments}}"] [=map/exists=] and
499+
|configuration|["{{SanitizerConfig/comments}}"] equals |allow|, then return false;
500+
1. Set |configuration|["{{SanitizerConfig/comments}}"] to |allow|.
501+
1. Return true.
502+
496503
</div>
497504

498505
<div algorithm>
@@ -1042,17 +1049,6 @@ to fix up per-element allow- or remove-lists to maintain our validity criteria.
10421049
10431050
</div>
10441051
1045-
<div algorithm>
1046-
To <dfn for="Sanitizer">set comments</dfn> with a [=boolean=] |allow| on a
1047-
{{SanitizerConfig}} |configuration|:
1048-
1049-
1. If |configuration|["{{SanitizerConfig/comments}}"] [=map/exists=] and
1050-
|configuration|["{{SanitizerConfig/comments}}"] equals |allow|, then return false;
1051-
1. Set |configuration|["{{SanitizerConfig/comments}}"] to |allow|.
1052-
1. Return true.
1053-
1054-
</div>
1055-
10561052
<div algorithm>
10571053
To <dfn for="Sanitizer">set data attributes</dfn> with a [=boolean=] |allow|
10581054
on a {{SanitizerConfig}} |configuration|:

0 commit comments

Comments
 (0)