Skip to content

Commit

Permalink
Add sanitizer counters.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewest committed Oct 9, 2022
1 parent eb4397e commit 1eb80cc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@

# Sandbox
'SandboxViaIFrame': 672,
'SandboxViaCSP': 673
'SandboxViaCSP': 673,

# Sanitizer
'SanitizerAPIElementSetSanitized': 3950,
'SanitizerAPICreated': 3814
}

days = set()
Expand Down
13 changes: 13 additions & 0 deletions bin/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ <h2 id="sanitizer-api">
The <a href="https://wicg.github.io/sanitizer-api/">HTML Sanitizer API</a> allow developers to take untrusted strings of HTML, and sanitize them for safe insertion into a document’s DOM to minimize the risk of unintended script execution.
</p>

<canvas id="sanitizer_usage"></canvas>

<section>
<h3>
Web Platform Tests:
Expand Down Expand Up @@ -347,6 +349,17 @@ <h3>
color: "green",
useCounter: 540
}]
}, {
id: "sanitizer_usage",
data: [{
label: "Element.setHTML",
color: "blue",
useCounter: 3950
}, {
label: "new Sanitizer()",
color: "green",
useCounter: 3814
}]
}, {
id: "sandbox_usage",
data: [{
Expand Down

0 comments on commit 1eb80cc

Please sign in to comment.