-
Notifications
You must be signed in to change notification settings - Fork 229
Walking the DOM #318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vplentinax
merged 24 commits into
javascript-tutorial:master
from
Leired7:walking-the-dom
Jul 29, 2020
Merged
Walking the DOM #318
Changes from 7 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a7e09ce
Walking the DOM - Caminando por el DOM
Leired7 b3677bc
Traducido
Leired7 4a85d1c
Traducido
Leired7 99a2bcf
Traducido
Leired7 8d86196
Traducido
Leired7 62dab4d
Traducido
Leired7 242f006
Cambiado "niño" por "hijo"
Leired7 67bd1d3
Update 2-ui/1-document/03-dom-navigation/1-dom-children/solution.md
Leired7 6cc23a4
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 6a28723
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 7fac6f6
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 bbbd56e
Update 2-ui/1-document/03-dom-navigation/1-dom-children/task.md
Leired7 38348d2
Update 2-ui/1-document/03-dom-navigation/3-navigation-links-which-nul…
Leired7 c15ada0
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 2e3d02f
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 fbaaed1
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 1501fe9
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 04ec290
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 f416a1c
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 0796f8b
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 b9880b2
Update 2-ui/1-document/03-dom-navigation/article.md
Leired7 59135ff
Update 2-ui/1-document/03-dom-navigation/1-dom-children/task.md
Leired7 02b92bd
Update 2-ui/1-document/03-dom-navigation/article.md
joaquinelio eb16ae9
Apply suggestions from code review
joaquinelio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
16 changes: 8 additions & 8 deletions
16
2-ui/1-document/03-dom-navigation/1-dom-children/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,27 @@ | ||
| There are many ways, for instance: | ||
| Hay muchas maneras, por ejemplo: | ||
|
|
||
|
|
||
| The `<div>` DOM node: | ||
| El nodo `<div>` del DOM: | ||
|
|
||
| ```js | ||
| document.body.firstElementChild | ||
| // or | ||
| // o | ||
| document.body.children[0] | ||
| // or (the first node is space, so we take 2nd) | ||
| // o (el primero nodo es un espacio, así que tomamos el segundo) | ||
| document.body.childNodes[1] | ||
| ``` | ||
|
|
||
| The `<ul>` DOM node: | ||
| El nodo `<ul>` del DOM: | ||
|
|
||
| ```js | ||
| document.body.lastElementChild | ||
| // or | ||
| // o | ||
| document.body.children[1] | ||
| ``` | ||
|
|
||
| The second `<li>` (with Pete): | ||
| El segundo `<li>` (con Pete): | ||
|
|
||
| ```js | ||
| // get <ul>, and then get its last element child | ||
| // obtener <ul>, y luego obtener su último elemento hijo | ||
| document.body.lastElementChild.lastElementChild | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
2-ui/1-document/03-dom-navigation/4-select-diagonal-cells/solution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| We'll be using `rows` and `cells` properties to access diagonal table cells. | ||
| Usaremos las propiedades de las `filas` y las `celdas` para acceder a las celdas de la tabla diagonal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.