You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/1-document/05-basic-dom-node-properties/article.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ For example, let's consider the DOM object for an `<input>` element. It belongs
38
38
-`EventTarget` -- gives the support for events (to be covered),
39
39
- ...and finally it inherits from `Object`, so "pure object" methods like `hasOwnProperty` are also available.
40
40
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:
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.
80
80
81
81
In IDL all properties are prepended with their types. For instance, `DOMString`, `boolean` and so on.
82
82
@@ -201,7 +201,7 @@ In XML mode the case is kept "as is". Nowadays XML mode is rarely used.
201
201
202
202
The [innerHTML](https://w3c.github.io/DOM-Parsing/#widl-Element-innerHTML) property allows to get the HTML inside the element as a string.
203
203
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.
205
205
206
206
The example shows the contents of `document.body` and then replaces it completely:
0 commit comments