diff options
| author | Florian Dieminger <me@fiji-flo.de> | 2021-02-11 18:27:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-11 18:27:17 +0100 |
| commit | ad7f998115dd568832332484debf1f1b16b0c905 (patch) | |
| tree | 2f3a9137e20731b7f6880fe5adb31fa439215d7d /files/pt-br/web/api/htmlelement/innertext/index.html | |
| parent | 7a94b4d8daf297eda6df8e5cf933f7ba159bbc76 (diff) | |
| parent | 1d435be33d8b76cd7b06cd06996c19d74f83cfd4 (diff) | |
| download | translated-content-ad7f998115dd568832332484debf1f1b16b0c905.tar.gz translated-content-ad7f998115dd568832332484debf1f1b16b0c905.tar.bz2 translated-content-ad7f998115dd568832332484debf1f1b16b0c905.zip | |
Merge pull request #41 from fiji-flo/unslugging-pt-br
Unslugging pt br
Diffstat (limited to 'files/pt-br/web/api/htmlelement/innertext/index.html')
| -rw-r--r-- | files/pt-br/web/api/htmlelement/innertext/index.html | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/files/pt-br/web/api/htmlelement/innertext/index.html b/files/pt-br/web/api/htmlelement/innertext/index.html new file mode 100644 index 0000000000..8a6f33ed32 --- /dev/null +++ b/files/pt-br/web/api/htmlelement/innertext/index.html @@ -0,0 +1,87 @@ +--- +title: Node.innerText +slug: Web/API/HTMLElement/innerText +translation_of: Web/API/HTMLElement/innerText +original_slug: Web/API/Node/innerText +--- +<div>{{APIRef("DOM")}}</div> + +<h2 id="Resumo">Resumo</h2> + +<p><code><strong>Node.innerText</strong></code> é uma propriedade que representa o conteúdo textual "renderizado" de um nó e seus descendentes. Usada como <a href="/pt-BR/docs/">getter</a>, retorna de maneira aproximada o texto que o usuário obteria caso tivesse selecionado o conteúdo e copiado para a área de transferência. Este recurso fora introduzido originalmente pelo Internet Explorer, mas foi oficialmente especificado no padrão HTML apenas em 2016, sendo adotado por todos os principais navegadores a partir de então.</p> + +<p>{{domxref("Node.textContent")}} é uma alternativa similar, embora existam diferenças significativas entre as duas.</p> + +<h2 id="Especificação">Especificação</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Especificação</th> + <th scope="col">Status</th> + <th scope="col">Comentário</th> + </tr> + <tr> + <td>{{SpecName('HTML WHATWG', 'dom.html#the-innertext-idl-attribute', 'innerText')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>Introduzida, baseado no <a href="https://github.com/rocallahan/innerText-spec">rascunho da especifição de innerText</a>. Ver <a href="https://github.com/whatwg/html/issues/465">whatwg/html#465</a> e <a href="https://github.com/whatwg/compat/issues/5">whatwg/compat#5</a> para histórico.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_Compatibility" name="Browser_Compatibility">Compatibilidade de navegadores</h2> + +<p>{{ CompatibilityTable() }}</p> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Recurso</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari (WebKit)</th> + </tr> + <tr> + <td>Suporte básico</td> + <td>4</td> + <td>{{ CompatGeckoDesktop(45) }}</td> + <td>6</td> + <td>9.6 (provavelmente antes)</td> + <td>3</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Recurso</th> + <th>Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>IE Mobile</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Suporte básico</td> + <td>2.3 (provavelmente antes)</td> + <td>{{ CompatGeckoMobile(45) }}</td> + <td>10 (provavelmente antes)</td> + <td>12</td> + <td>4.1 (provavelmente antes)</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="Ver_também">Ver também</h2> + +<ul> + <li>{{domxref("HTMLElement.outerText")}}</li> + <li>{{domxref("Element.innerHTML")}}</li> +</ul> |
