Merge pull request #2276 from vsemozhetbyt/patch-18
Fix typos in 2.1.4 (Searching elements)
This commit is contained in:
commit
5607c7721f
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ If there are multiple elements with the same `id`, then the behavior of methods
|
|||
```
|
||||
|
||||
```warn header="Only `document.getElementById`, not `anyElem.getElementById`"
|
||||
The method `getElementById` that can be called only on `document` object. It looks for the given `id` in the whole document.
|
||||
The method `getElementById` can be called only on `document` object. It looks for the given `id` in the whole document.
|
||||
```
|
||||
|
||||
## querySelectorAll [#querySelectorAll]
|
||||
|
@ -363,7 +363,7 @@ There are 6 main methods to search for nodes in DOM:
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
By far the most used are `querySelector` and `querySelectorAll`, but `getElementBy*` can be sporadically helpful or found in the old scripts.
|
||||
By far the most used are `querySelector` and `querySelectorAll`, but `getElement(s)By*` can be sporadically helpful or found in the old scripts.
|
||||
|
||||
Besides that:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue