@@ -364,6 +364,8 @@ checking because it won't have loaded successfully.
364
364
</section ><!-- Algorithms::eligible -->
365
365
<section >
366
366
#### Parse <var >metadata</var >.
367
+ {: #parse-metadata}
368
+ [ parse ] : #parse-metadata
367
369
368
370
This algorithm accepts a string, and returns either ` no metadata ` , or a set of
369
371
valid hash expressions whose hash functions are understood by
@@ -386,6 +388,8 @@ the user agent.
386
388
</section ><!-- Algorithms::parse -->
387
389
<section >
388
390
#### 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
389
393
390
394
1 . Let <var >result</var > be the empty set and <var >strongest</var > be the empty
391
395
string.
@@ -408,6 +412,8 @@ the user agent.
408
412
</section ><!-- /Algorithms::get the strongest metadata -->
409
413
<section >
410
414
#### Does <var >response</var > match <var >metadataList</var >?
415
+ {: #does-response-match-metadatalist}
416
+ [ match ] : #does-response-match-metadatalist
411
417
412
418
1 . Let <var >parsedMetadata</var > be the result of
413
419
[ 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
456
462
in the threat model of this specification. However, user agents SHOULD report
457
463
a warning message about this failure in the developer console.
458
464
{:.note}
459
-
460
- [ parse ] : #parse-metadata.x
461
- [ get-the-strongest ] : #get-the-strongest-metadata-from-set.x
462
- [ match ] : #does-response-match-metadatalist
463
465
</section ><!-- Algorithms::Match -->
464
466
</section ><!-- Algorithms -->
465
467
@@ -542,6 +544,7 @@ for all possible subresources, i.e., `a`, `audio`, `embed`, `iframe`, `img`,
542
544
543
545
<section >
544
546
#### The ` integrity ` attribute
547
+ {: #the-integrity-attribute}
545
548
546
549
The ` integrity ` attribute represents [ integrity metadata] [ ] for an element.
547
550
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.
613
616
614
617
<section >
615
618
###### The ` link ` element for stylesheets
619
+ {: #the-link-element-for-stylesheets}
616
620
617
621
Whenever a user agent attempts to [ obtain a resource] [ ] pointed to by a
618
622
` link ` element that has a ` rel ` attribute with the keyword of ` stylesheet ` ,
@@ -631,6 +635,7 @@ value of the element's `integrity` attribute.
631
635
632
636
<section >
633
637
###### The ` script ` element
638
+ {: #the-script-element}
634
639
635
640
Replace step 14.1 of HTML5's [ "prepare a script" algorithm] [ prepare ] with:
636
641
0 commit comments