Nuestros voluntarios aún no han traducido este artículo al Español. ¡Únete a nosotros y ayúdanos a traducirlo!
También puedes leer el artículo en English (US).

Node.innerText is a property that represents the "rendered" text content of a node and its descendants. As a getter, it approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied to the clipboard.

This feature was originally introduced by Internet Explorer, and was formally specified in the HTML standard in 2016 after being adopted by all major browser vendors.

Node.textContent is a somewhat similar alternative, although there are important differences between the two.


Specification Status Comment
HTML Living Standard
The definition of 'innerText' in that specification.
Living Standard Introduced, based on the draft of the innerText specification. See whatwg/html#465 and whatwg/compat#5 for history.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 4Edge Full support 12Firefox Full support 45IE Full support 10Opera Full support 9.6Safari Full support 3WebView Android Full support YesChrome Android Full support YesEdge Mobile Full support 12Firefox Android Full support 45Opera Android Full support YesSafari iOS Full support 4Samsung Internet Android Full support Yes


Full support  
Full support

See also

Etiquetas y colaboradores del documento

Colaboradores en esta página: Sheppy, fscholz, Rob W, myakura, cvrebert, mrenty, evilpie
Última actualización por: Sheppy,