Skip to content

Commit 5d4fc2a

Browse files
Add versioning to examples of external references
I didn’t add a version to the hello-world.js example as it’s referenced locally.
1 parent 94f3b3e commit 5d4fc2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ spec: SHA2; urlPrefix: http://csrc.nist.gov/publications/fips/fips180-4/fips-180
117117
of the representation of the resource the author expects to load. For instance,
118118
an author may wish to load some framework from a shared server rather than hosting it
119119
on their own origin. Specifying that the <em>expected</em> SHA-384 hash of
120-
`https://example.com/example-framework.js`
120+
`https://example.com/v1.0/example-framework.js`
121121
is `Li9vy3DqF8tnTXuiaAJuML3ky+er10rcgNR/VqsVpcw+ThHmYcwiB1pbOxEbzJr7` means
122122
that the user agent can verify that the data it loads from that URL matches
123123
that expected hash before executing the JavaScript it contains. This
@@ -129,7 +129,7 @@ spec: SHA2; urlPrefix: http://csrc.nist.gov/publications/fips/fips180-4/fips-180
129129

130130
<div class="example">
131131
<pre>
132-
&lt;script src="https://example.com/example-framework.js"
132+
&lt;script src="https://example.com/v1.0/example-framework.js"
133133
integrity="sha384-Li9vy3DqF8tnTXuiaAJuML3ky+er10rcgNR/VqsVpcw+ThHmYcwiB1pbOxEbzJr7"
134134
crossorigin="anonymous"&gt;&lt;/script&gt;
135135
</pre>
@@ -164,7 +164,7 @@ spec: SHA2; urlPrefix: http://csrc.nist.gov/publications/fips/fips180-4/fips-180
164164

165165
<div class="example">
166166
<pre>
167-
&lt;link rel="stylesheet" href="https://site53.example.net/style.css"
167+
&lt;link rel="stylesheet" href="https://site53.example.net/v1.0/style.css"
168168
integrity="sha384-+/M6kredJcxdsqkczBUjMLvqyHb1K/JThDXWsBVxMEeZHEaMKEOEct339VItX1zB"
169169
crossorigin="anonymous"&gt;
170170
</pre>
@@ -411,7 +411,7 @@ spec: SHA2; urlPrefix: http://csrc.nist.gov/publications/fips/fips180-4/fips-180
411411

412412
<div class="example">
413413
<pre>
414-
&lt;script src="https://example.com/example-framework.js"
414+
&lt;script src="https://example.com/v1.0/example-framework.js"
415415
integrity="sha384-Li9vy3DqF8tnTXuiaAJuML3ky+er10rcgNR/VqsVpcw+ThHmYcwiB1pbOxEbzJr7
416416
sha384-+/M6kredJcxdsqkczBUjMLvqyHb1K/JThDXWsBVxMEeZHEaMKEOEct339VItX1zB"
417417
crossorigin="anonymous"&gt;&lt;/script&gt;

0 commit comments

Comments
 (0)