File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1214
1214
</ style >
1215
1215
< meta content ="Bikeshed version 0dd2bba6dfda6c3168490a3a3044dd1d0b1ef8e0 " name ="generator ">
1216
1216
< 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 ">
1218
1218
< style > /* style-md-lists */
1219
1219
1220
1220
/* 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">
2097
2097
< c- c1 > // Without it, eval(trustedTypes.emptyScript) will return a truthy Object.</ c- >
2098
2098
< c- kr > const</ c- > supportsTS < c- o > =</ c- > < c- o > !</ c- > eval< c- p > (</ c- > trustedTypes< c- p > .</ c- > emptyScript< c- p > );</ c- >
2099
2099
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- >
2101
2101
</ pre >
2102
2102
</ div >
2103
2103
< dl >
Original file line number Diff line number Diff line change @@ -581,7 +581,7 @@ eval(TrustedScript) will return its input without unwrapping and evaluating the
581
581
// Without it, eval(trustedTypes.emptyScript) will return a truthy Object.
582
582
const supportsTS = !eval(trustedTypes.emptyScript);
583
583
584
- eval(supportsTs ? myTrustedScriptObj : myTrustedScriptObj.toString());
584
+ eval(supportsTS ? myTrustedScriptObj : myTrustedScriptObj.toString());
585
585
</xmp>
586
586
</div>
587
587
You can’t perform that action at this time.
0 commit comments