We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8494986 commit 3810867Copy full SHA for 3810867
2-ui/1-document/03-dom-navigation/article.md
@@ -243,8 +243,8 @@ O motivo é que o nó raiz `document.documentElement` (`<html>`) tem `document`
243
244
Esse detalhe pode ser útil quando queremos percorrer um caminho a partir de um elemento arbitrário `elem` até `<html>`, mas não até o `document`:
245
```js
246
-while(elem = elem.parentElement) {
247
- alert( elem ); // percorrer o caminho até <html>
+while(elem = elem.parentElement) { // percorre o caminho até <html>
+ alert( elem );
248
}
249
```
250
````
0 commit comments