minor
This commit is contained in:
parent
1863944179
commit
fc2bb4d99a
1 changed files with 2 additions and 2 deletions
|
@ -195,11 +195,11 @@ For instance, here `<head>` and `<body>` are siblings:
|
||||||
- `<body>` is said to be the "next" or "right" sibling of `<head>`,
|
- `<body>` is said to be the "next" or "right" sibling of `<head>`,
|
||||||
- `<head>` is said to be the "previous" or "left" sibling of `<body>`.
|
- `<head>` is said to be the "previous" or "left" sibling of `<body>`.
|
||||||
|
|
||||||
The next sibling is `nextSibling`, and the previous one is `previousSibling`.
|
The next sibling is in `nextSibling` property, and the previous one - in `previousSibling`.
|
||||||
|
|
||||||
The parent is available as `parentNode`.
|
The parent is available as `parentNode`.
|
||||||
|
|
||||||
So all these tests are truthy:
|
For example:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// parent of <body> is <html>
|
// parent of <body> is <html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue