Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80c5369 commit 99c1e64Copy full SHA for 99c1e64
homework/Util.js
@@ -8,7 +8,7 @@ class Util {
8
Object.keys(options).forEach(key => {
9
const value = options[key];
10
if (key === 'text') {
11
- elem.innerText = value;
+ elem.textContent = value;
12
} else {
13
elem.setAttribute(key, value);
14
}
homework/index.js
@@ -22,7 +22,7 @@
22
23
24
25
26
27
28
0 commit comments