Skip to content

Commit c64f758

Browse files
committed
more links
1 parent 42d5618 commit c64f758

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

2-ui/1-document/03-dom-navigation/article.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -270,59 +270,59 @@ Vamos modificar um dos exemplos acima: substitua `childNodes` por `children`. Ag
270270
</html>
271271
```
272272
273-
## More links: tables [#dom-navigation-tables]
273+
## Mais interligações: tabelas [#dom-navigation-tables]
274274
275-
Till now we described the basic navigation properties.
275+
Até agora, descrevemos as propriedades básicas de navegação.
276276
277-
Certain types of DOM elements may provide additional properties, specific to their type, for convenience.
277+
Certos tipos de elementos DOM podem fornecer propriedades adicionais, específicas ao seu tipo, por conveniência.
278278
279-
Tables are a great example and important particular case of that.
279+
As tabelas são um ótimo exemplo e um importante caso particular disso.
280280
281-
**The `<table>`** element supports (in addition to the given above) these properties:
282-
- `table.rows` -- the collection of `<tr>` elements of the table.
283-
- `table.caption/tHead/tFoot` -- references to elements `<caption>`, `<thead>`, `<tfoot>`.
284-
- `table.tBodies` -- the collection of `<tbody>` elements (can be many according to the standard).
281+
O elemento **`<table>`** suporta, além do explicado anteriormente, estas propriedades:
282+
- `table.rows` -- a coleção de elementos `<tr>` da tabela.
283+
- `table.caption/tHead/tFoot` -- referências aos elementos `<caption>`, `<thead>`, `<tfoot>`.
284+
- `table.tBodies` -- a coleção de elementos `<tbody>` (pode haver muitos, de acordo com o padrão normatizador).
285285
286-
**`<thead>`, `<tfoot>`, `<tbody>`** elements provide the `rows` property:
287-
- `tbody.rows` -- the collection of `<tr>` inside.
286+
**`<thead>`, `<tfoot>`, `<tbody>`** elementos que fornecem a propriedade `rows`:
287+
- `tbody.rows` -- a coleção de `<tr>` internas.
288288
289289
**`<tr>`:**
290-
- `tr.cells` -- the collection of `<td>` and `<th>` cells inside the given `<tr>`.
291-
- `tr.sectionRowIndex` -- the position (index) of the given `<tr>` inside the enclosing `<thead>/<tbody>/<tfoot>`.
292-
- `tr.rowIndex` -- the number of the `<tr>` in the table as a whole (including all table rows).
290+
- `tr.cells` -- a coleção de células `<td>` e `<th>` dentro do `<tr>` referido.
291+
- `tr.sectionRowIndex` -- a posição (índice) do referido `<tr>` dentro de `<thead> / <tbody> / <tfoot>`.
292+
- `tr.rowIndex` -- a posição da `<tr>` na tabela como um todo (incluindo todas as linhas da tabela).
293293
294-
**`<td>` and `<th>`:**
295-
- `td.cellIndex` -- the number of the cell inside the enclosing `<tr>`.
294+
**`<td>` e `<th>`:**
295+
- `td.cellIndex` -- a posição da célula dentro do `<tr>`.
296296
297-
An example of usage:
297+
Um exemplo de uso:
298298
299299
```html run height=100
300300
<table id="table">
301301
<tr>
302-
<td>one</td><td>two</td>
302+
<td>um</td><td>dois</td>
303303
</tr>
304304
<tr>
305-
<td>three</td><td>four</td>
305+
<td>três</td><td>quatro</td>
306306
</tr>
307307
</table>
308308
309309
<script>
310-
// get the content of the first row, second cell
311-
alert( table.*!*rows[0].cells[1]*/!*.innerHTML ) // "two"
310+
// obter o conteúdo da primeira linha, segunda célula
311+
alert( table.*!*rows[0].cells[1]*/!*.innerHTML ) // "dois"
312312
</script>
313313
```
314314
315-
The specification: [tabular data](https://html.spec.whatwg.org/multipage/tables.html).
315+
A especificação: [Informações sobre as tabelas](https://html.spec.whatwg.org/multipage/tables.html).
316316
317-
There are also additional navigation properties for HTML forms. We'll look at them later when we start working with forms.
317+
Também há propriedades de navegação adicionais para formulários HTML. Veremos quando começarmos a trabalhar com formulários.
318318
319-
# Summary
319+
# Resumo
320320
321-
Given a DOM node, we can go to its immediate neighbours using navigation properties.
321+
Quando nos referimos a um nó DOM, podemos ir para seus vizinhos diretos usando propriedades de navegação.
322322
323-
There are two main sets of them:
323+
Existem dois conjuntos principais:
324324
325-
- For all nodes: `parentNode`, `childNodes`, `firstChild`, `lastChild`, `previousSibling`, `nextSibling`.
326-
- For element nodes only: `parentElement`, `children`, `firstElementChild`, `lastElementChild`, `previousElementSibling`, `nextElementSibling`.
325+
- Para todos os nós: `parentNode`, `childNodes`, `firstChild`, `lastChild`, `previousSibling`, `nextSibling`.
326+
- Apenas para nós de elementos: `parentElement`, `children`, `firstElementChild`, `lastElementChild`, `previousElementSibling`, `nextElementSibling`.
327327
328-
Some types of DOM elements, e.g. tables, provide additional properties and collections to access their content.
328+
Alguns tipos de elementos DOM, por exemplo tabelas, fornecem propriedades e coleções adicionais para acessar seu conteúdo.

0 commit comments

Comments
 (0)