Skip to content

Commit 1fdea8e

Browse files
Fixed several more broken header links
1 parent c5abfd1 commit 1fdea8e

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

specs/subresourceintegrity/index.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ <h4 id="agility">Agility</h4>
380380

381381
<p>In this case, the user agent will choose the strongest hash function in the
382382
list, and use that metadata to validate the response (as described below in
383-
the “<a href="#parse-metadata.x">parse metadata</a>” and “<a href="#get-the-strongest-metadata-from-set.x">get the strongest metadata from
383+
the “<a href="#parse-metadata">parse metadata</a>” and “<a href="#get-the-strongest-metadata-from-set">get the strongest metadata from
384384
set</a>” algorithms).</p>
385385

386386
<p>When a hash function is determined to be insecure, user agents SHOULD deprecate
@@ -480,7 +480,7 @@ <h4 id="is-response-eligible-for-integrity-validation">Is <var>response</var> el
480480
</section>
481481
<!-- Algorithms::eligible -->
482482
<section>
483-
<h4 id="parse-varmetadatavar">Parse <var>metadata</var>.</h4>
483+
<h4 id="parse-metadata">Parse <var>metadata</var>.</h4>
484484

485485
<p>This algorithm accepts a string, and returns either <code>no metadata</code>, or a set of
486486
valid hash expressions whose hash functions are understood by
@@ -507,7 +507,7 @@ <h4 id="parse-varmetadatavar">Parse <var>metadata</var>.</h4>
507507
</section>
508508
<!-- Algorithms::parse -->
509509
<section>
510-
<h4 id="get-the-strongest-metadata-from-varsetvar">Get the strongest metadata from <var>set</var>.</h4>
510+
<h4 id="get-the-strongest-metadata-from-set">Get the strongest metadata from <var>set</var>.</h4>
511511

512512
<ol>
513513
<li>Let <var>result</var> be the empty set and <var>strongest</var> be the empty
@@ -534,15 +534,15 @@ <h4 id="get-the-strongest-metadata-from-varsetvar">Get the strongest metadata fr
534534
</section>
535535
<!-- /Algorithms::get the strongest metadata -->
536536
<section>
537-
<h4 id="does-varresponsevar-match-varmetadatalistvar">Does <var>response</var> match <var>metadataList</var>?</h4>
537+
<h4 id="does-response-match-metadatalist">Does <var>response</var> match <var>metadataList</var>?</h4>
538538

539539
<ol>
540540
<li>Let <var>parsedMetadata</var> be the result of
541-
<a href="#parse-metadata.x">parsing <var>metadataList</var></a>.</li>
541+
<a href="#parse-metadata">parsing <var>metadataList</var></a>.</li>
542542
<li>If <var>parsedMetadata</var> is <code>no metadata</code>, return <code>true</code>.</li>
543543
<li>If <a href="#is-response-eligible-for-integrity-validation"><var>response</var> is not eligible for integrity
544544
validation</a>, return <code>true</code>.</li>
545-
<li>Let <var>metadata</var> be the result of <a href="#get-the-strongest-metadata-from-set.x">getting the strongest
545+
<li>Let <var>metadata</var> be the result of <a href="#get-the-strongest-metadata-from-set">getting the strongest
546546
metadata from <var>parsedMetadata</var></a>.</li>
547547
<li>For each <var>item</var> in <var>metadata</var>:
548548
<ol>
@@ -585,7 +585,6 @@ <h4 id="does-varresponsevar-match-varmetadatalistvar">Does <var>response</var> m
585585
same-origin or CORS) should fail open since they are not the result of an attack
586586
in the threat model of this specification. However, user agents SHOULD report
587587
a warning message about this failure in the developer console.</p>
588-
589588
</section>
590589
<!-- Algorithms::Match -->
591590
</section>

specs/subresourceintegrity/spec.markdown

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ checking because it won't have loaded successfully.
364364
</section><!-- Algorithms::eligible -->
365365
<section>
366366
#### Parse <var>metadata</var>.
367+
{: #parse-metadata}
368+
[parse]: #parse-metadata
367369

368370
This algorithm accepts a string, and returns either `no metadata`, or a set of
369371
valid hash expressions whose hash functions are understood by
@@ -386,6 +388,8 @@ the user agent.
386388
</section><!-- Algorithms::parse -->
387389
<section>
388390
#### Get the strongest metadata from <var>set</var>.
391+
{: #get-the-strongest-metadata-from-set}
392+
[get-the-strongest]: #get-the-strongest-metadata-from-set
389393

390394
1. Let <var>result</var> be the empty set and <var>strongest</var> be the empty
391395
string.
@@ -408,6 +412,8 @@ the user agent.
408412
</section><!-- /Algorithms::get the strongest metadata -->
409413
<section>
410414
#### Does <var>response</var> match <var>metadataList</var>?
415+
{: #does-response-match-metadatalist}
416+
[match]: #does-response-match-metadatalist
411417

412418
1. Let <var>parsedMetadata</var> be the result of
413419
[parsing <var>metadataList</var>][parse].
@@ -456,10 +462,6 @@ same-origin or CORS) should fail open since they are not the result of an attack
456462
in the threat model of this specification. However, user agents SHOULD report
457463
a warning message about this failure in the developer console.
458464
{:.note}
459-
460-
[parse]: #parse-metadata.x
461-
[get-the-strongest]: #get-the-strongest-metadata-from-set.x
462-
[match]: #does-response-match-metadatalist
463465
</section><!-- Algorithms::Match -->
464466
</section><!-- Algorithms -->
465467

@@ -542,6 +544,7 @@ for all possible subresources, i.e., `a`, `audio`, `embed`, `iframe`, `img`,
542544

543545
<section>
544546
#### The `integrity` attribute
547+
{: #the-integrity-attribute}
545548

546549
The `integrity` attribute represents [integrity metadata][] for an element.
547550
The value of the attribute MUST be either the empty string, or at least one
@@ -613,6 +616,7 @@ failed resource with a different one.
613616

614617
<section>
615618
###### The `link` element for stylesheets
619+
{: #the-link-element-for-stylesheets}
616620

617621
Whenever a user agent attempts to [obtain a resource][] pointed to by a
618622
`link` element that has a `rel` attribute with the keyword of `stylesheet`,
@@ -631,6 +635,7 @@ value of the element's `integrity` attribute.
631635

632636
<section>
633637
###### The `script` element
638+
{: #the-script-element}
634639

635640
Replace step 14.1 of HTML5's ["prepare a script" algorithm][prepare] with:
636641

0 commit comments

Comments
 (0)