aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/document/featurepolicy/index.md
blob: 7c926f4c7e2d52bd6e96f0a2df1563cc9e95538e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
title: Document.featurePolicy
slug: Web/API/Document/featurePolicy
tags:
  - API
  - Document
  - Feature Policy
  - Feature-Policy
  - Reference
translation_of: Web/API/Document/featurePolicy
---
{{APIRef("Feature Policy")}}

La propriété en lecture seule **`featurePolicy`** de l'interface {{domxref("Document")}} retourne l'interface {{domxref("FeaturePolicy")}}, qui fournit une API permettant de consulter facilement les règles de fonctionnalités appliquées sur un document spécifique.

## Syntaxe

    var policy = iframeElement.featurePolicy

### Valeur

Un objet {{domxref("FeaturePolicy")}} pouvant être utilisé pour consulter les paramètres de Feature Policy appliqués au document.

## Spécification

| Spécification                            | Statut                               | Commentaire          |
| ---------------------------------------- | ------------------------------------ | -------------------- |
| {{SpecName("Feature Policy")}} | {{Spec2("Feature Policy")}} | Définition initiale. |

## Compatibilité des navigateurs

{{Compat("api.Document.featurePolicy")}}