Node.innerText
Sommaire
Node.innerText
est une propriété représentant le contenu textuel « visuellement rendu » d’un nœud. Utilisé en lecture, il renvoie une approximation du texte que l’utilisateur ou utilisatrice obtiendrait s’il ou elle sélectionnnait le contenu d’un élément avec le curseur, et le copiait dans le presse-papier.
Node.textContent
est une alternative similaire, bien qu’il y ait d’importantes différences entre les deux.
Spécification
Spécification | Statut | Commentaire |
---|---|---|
HTML Living Standard La définition de 'innerText' dans cette spécification. |
Standard évolutif | Introduction basée sur le brouillon de spécification de innerText. Voir whatwg/html#465 et whatwg/compat#5 pour l’histoire. |
Compatibilité des navigateurs
No compatibility data found for api.Node.innerText
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.