Skip to content

Commit 4a9a2cf

Browse files
committed
Typo fix
1 parent d2dd649 commit 4a9a2cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/spec/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@
12141214
</style>
12151215
<meta content="Bikeshed version 0dd2bba6dfda6c3168490a3a3044dd1d0b1ef8e0" name="generator">
12161216
<link href="https://w3c.github.io/webappsec-trusted-types/dist/spec/" rel="canonical">
1217-
<meta content="7a3e772902cab86d8da8fb29348528cad5a1c475" name="document-revision">
1217+
<meta content="d2dd64979af090119aebf5bc48b77e7ee90fb3e1" name="document-revision">
12181218
<style>/* style-md-lists */
12191219

12201220
/* This is a weird hack for me not yet following the commonmark spec
@@ -2097,7 +2097,7 @@ <h4 class="heading settled" data-level="2.3.1" id="trusted-type-policy-factory">
20972097
<c- c1>// Without it, eval(trustedTypes.emptyScript) will return a truthy Object.</c->
20982098
<c- kr>const</c-> supportsTS <c- o>=</c-> <c- o>!</c->eval<c- p>(</c->trustedTypes<c- p>.</c->emptyScript<c- p>);</c->
20992099

2100-
eval<c- p>(</c->supportsTs <c- o>?</c-> myTrustedScriptObj <c- o>:</c-> myTrustedScriptObj<c- p>.</c->toString<c- p>());</c->
2100+
eval<c- p>(</c->supportsTS <c- o>?</c-> myTrustedScriptObj <c- o>:</c-> myTrustedScriptObj<c- p>.</c->toString<c- p>());</c->
21012101
</pre>
21022102
</div>
21032103
<dl>

spec/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ eval(TrustedScript) will return its input without unwrapping and evaluating the
581581
// Without it, eval(trustedTypes.emptyScript) will return a truthy Object.
582582
const supportsTS = !eval(trustedTypes.emptyScript);
583583

584-
eval(supportsTs ? myTrustedScriptObj : myTrustedScriptObj.toString());
584+
eval(supportsTS ? myTrustedScriptObj : myTrustedScriptObj.toString());
585585
</xmp>
586586
</div>
587587

0 commit comments

Comments
 (0)