Fix typos in 2.1.4 (Searching elements)

This commit is contained in:
Vse Mozhe Buty 2020-11-09 16:19:36 +00:00 committed by GitHub
parent 9e99c367ab
commit 8f912948a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: