|
62 | 62 | );
|
63 | 63 | }
|
64 | 64 | }
|
| 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 | + } |
65 | 75 | }
|
66 | 76 | ],
|
67 | 77 | postProcess: [
|
|
1262 | 1272 |
|
1263 | 1273 | ## Data Minimization {#data-minimization}
|
1264 | 1274 |
|
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=] |
1266 | 1278 | should restrict the [=data=] they transfer to what's either necessary to achieve their users'
|
1267 | 1279 | goals or aligns with their users' wishes and interests.</span></div>
|
1268 | 1280 |
|
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 |
1270 | 1284 | to request to carry out their users' goals.
|
1271 | 1285 | Web APIs should also provide granularity and user controls over <a>personal
|
1272 | 1286 | data</a> that is communicated to [=sites=].</span></div>
|
|
1432 | 1446 | ## Information access {#information}
|
1433 | 1447 |
|
1434 | 1448 | <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 |
1436 | 1451 | as well as existing APIs that are expected to stay in the web platform.</span>
|
1437 | 1452 | </div>
|
1438 | 1453 |
|
|
0 commit comments