aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/web/api/element/getattribute/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/web/api/element/getattribute/index.html')
-rw-r--r--files/pt-br/web/api/element/getattribute/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/pt-br/web/api/element/getattribute/index.html b/files/pt-br/web/api/element/getattribute/index.html
index c5d1a9475b..4ebb34689e 100644
--- a/files/pt-br/web/api/element/getattribute/index.html
+++ b/files/pt-br/web/api/element/getattribute/index.html
@@ -40,7 +40,7 @@ alert(align); // mostra o valor do atributo "align" do elemento com id="div1"</p
<p>Essencialmente todos navegadores (Firefox, Internet Explorer, versões recentes do Opera, Safari, Konqueror, e iCab, por exemplo) retornam <code>null</code> quando o atributo especificado não existe no elemento em questão, seguindo que <a href="http://dom.spec.whatwg.org/#dom-element-getattribute" title="http://dom.spec.whatwg.org/#dom-element-getattribute">o esboço atual de especificações DOM</a> diz. A velha especificação do DOM 3 Core, por sua vez, diz que correto é retornar uma <em>string vazia</em> e algumas implementações de DOM se comportam dessa forma. Por exemplo, a implementação do getAttribute no XUL (Gecko) segue as especificações do DOM 3 Core e retorna uma string vazia. Consequentemente, deve-se usar {{domxref("Element.hasAttribute()")}} para checar a existência do atributo antes de utilizar o <code>getAttribute()</code>caso exista a possibilidade do argumento inexistir.</p>
<div>
-<h2 id="Compatibilidade_entre_browsers">Compatibilidade entre browsers</h2>
+<h2 id="Browser_compatibility">Compatibilidade com navegadores</h2>
<p>{{CompatibilityTable}}</p>