You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+8-12Lines changed: 8 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -492,7 +492,14 @@ The <dfn for="Sanitizer" method export>removeAttribute(|attribute|)</dfn> method
492
492
</div>
493
493
494
494
<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
+
496
503
</div>
497
504
498
505
<div algorithm>
@@ -1042,17 +1049,6 @@ to fix up per-element allow- or remove-lists to maintain our validity criteria.
1042
1049
1043
1050
</div>
1044
1051
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
-
1056
1052
<div algorithm>
1057
1053
To <dfn for="Sanitizer">set data attributes</dfn> with a [=boolean=] |allow|
0 commit comments