Skip to content

Commit 227a0f2

Browse files
authored
Merge pull request #1157 from tonchique/patch-10
Update article.md
2 parents a7a267b + 1c41c42 commit 227a0f2

File tree

1 file changed

+3
-3
lines changed
  • 2-ui/1-document/05-basic-dom-node-properties

1 file changed

+3
-3
lines changed

2-ui/1-document/05-basic-dom-node-properties/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ For example, let's consider the DOM object for an `<input>` element. It belongs
3838
- `EventTarget` -- gives the support for events (to be covered),
3939
- ...and finally it inherits from `Object`, so "pure object" methods like `hasOwnProperty` are also available.
4040

41-
To see the DOM node class name, we can recall that an object usually has the `constructor` property. It references to the class constructor, and `constructor.name` is its name:
41+
To see the DOM node class name, we can recall that an object usually has the `constructor` property. It references the class constructor, and `constructor.name` is its name:
4242

4343
```js run
4444
alert( document.body.constructor.name ); // HTMLBodyElement
@@ -76,7 +76,7 @@ Try it on `document.body`.
7676
```
7777
7878
````smart header="IDL in the spec"
79-
In the specification, DOM classes are described not using JavaScript, but a special [Interface description language](https://en.wikipedia.org/wiki/Interface_description_language) (IDL), that is usually easy to understand.
79+
In the specification, DOM classes aren't described by using JavaScript, but a special [Interface description language](https://en.wikipedia.org/wiki/Interface_description_language) (IDL), that is usually easy to understand.
8080
8181
In IDL all properties are prepended with their types. For instance, `DOMString`, `boolean` and so on.
8282
@@ -201,7 +201,7 @@ In XML mode the case is kept "as is". Nowadays XML mode is rarely used.
201201
202202
The [innerHTML](https://w3c.github.io/DOM-Parsing/#widl-Element-innerHTML) property allows to get the HTML inside the element as a string.
203203
204-
We can also modify it. So it's one of most powerful ways to change the page.
204+
We can also modify it. So it's one of the most powerful ways to change the page.
205205
206206
The example shows the contents of `document.body` and then replaces it completely:
207207

0 commit comments

Comments
 (0)