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
+17-21Lines changed: 17 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -503,7 +503,23 @@ The <dfn for="Sanitizer" method export>setComments(|allow|)</dfn> method steps a
503
503
</div>
504
504
505
505
<div algorithm>
506
-
The <dfn for="Sanitizer" method export>setDataAttributes(|allow|)</dfn> method steps are to [=set data attributes=] with |allow| and [=this=]'s [=Sanitizer/configuration=].
506
+
The <dfn for="Sanitizer" method export>setDataAttributes(|allow|)</dfn> method steps are:
507
+
508
+
1. Let |configuration| be [=this=]'s [=Sanitizer/configuration=].
509
+
1. If |configuration|["{{SanitizerConfig/attributes}}"] does not [=map/exist=], then return false.
510
+
1. If |configuration|["{{SanitizerConfig/dataAttributes}}"] equals |allow|, then return false.
511
+
1. If |allow| is true:
512
+
1. [=list/Remove=] any items |attr| from |configuration|["{{SanitizerConfig/attributes}}"]
513
+
where |attr| is a [=custom data attribute=].
514
+
1. If |configuration|["{{SanitizerConfig/elements}}"][=map/exists=]:
515
+
1. [=list/iterate|For each=] |element| in |configuration|["{{SanitizerConfig/elements}}"]:
516
+
1. If |element|[{{SanitizerElementNamespaceWithAttributes/attributes}}][=map/exists=]:
0 commit comments