Skip to content

Commit 028eb86

Browse files
committed
Assign IDs to all principles.
1 parent 5206db9 commit 028eb86

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

index.html

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@
6262
);
6363
}
6464
}
65+
},
66+
function checkPracticeIds(_conf, _doc, utils) {
67+
// Ensure every principle has a non-generated ID.
68+
for (const practice of document.querySelectorAll(".practicelab")) {
69+
if (!practice.id) {
70+
utils.showWarning(
71+
`Principle should be assigned an id.`, { elements: [practice] }
72+
);
73+
}
74+
}
6575
}
6676
],
6777
postProcess: [
@@ -1262,11 +1272,15 @@
12621272

12631273
## Data Minimization {#data-minimization}
12641274

1265-
<div class="practice" data-audiences="websites user-agents"><span class="practicelab">[=Sites=], [=user agents=], and other [=actors=]
1275+
<div class="practice" data-audiences="websites user-agents">
1276+
<span class="practicelab" id="restrict-data-to-necessary-or-aligned">
1277+
[=Sites=], [=user agents=], and other [=actors=]
12661278
should restrict the [=data=] they transfer to what's either necessary to achieve their users'
12671279
goals or aligns with their users' wishes and interests.</span></div>
12681280

1269-
<div class="practice" data-audiences="api-designers"><span class="practicelab">Web APIs should be designed to minimize the amount of data that sites need
1281+
<div class="practice" data-audiences="api-designers">
1282+
<span class="practicelab" id="granular-api-data-requests">
1283+
Web APIs should be designed to minimize the amount of data that sites need
12701284
to request to carry out their users' goals.
12711285
Web APIs should also provide granularity and user controls over <a>personal
12721286
data</a> that is communicated to [=sites=].</span></div>
@@ -1432,7 +1446,8 @@
14321446
## Information access {#information}
14331447

14341448
<div class="practice" data-audiences="api-designers user-agents">
1435-
<span class="practicelab">New web APIs should guard users' information at least
1449+
<span class="practicelab" id="deprecated-apis-dont-justify-information-leaks">
1450+
New web APIs should guard users' information at least
14361451
as well as existing APIs that are expected to stay in the web platform.</span>
14371452
</div>
14381453

0 commit comments

Comments
 (0)