Skip to content

Commit 844aef6

Browse files
authored
MD typo in <!--BODY-->
When displayed on https://javascript.info/basic-dom-node-properties there was a typo that said <!–BODY–> but it was supposed to say <!--BODY-->. It was caused by a markdown technicality.
1 parent e40b8e7 commit 844aef6

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

2-ui/1-document/05-basic-dom-node-properties/3-tag-in-comment/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ The answer: **`BODY`**.
1212

1313
What's going on step by step:
1414

15-
1. The content of `<body>` is replaced with the comment. The comment is <code>&lt;!--BODY--&gt;</code>, because `body.tagName == "BODY"`. As we remember, `tagName` is always uppercase in HTML.
15+
1. The content of `<body>` is replaced with the comment. The comment is `<!--BODY-->`, because `body.tagName == "BODY"`. As we remember, `tagName` is always uppercase in HTML.
1616
2. The comment is now the only child node, so we get it in `body.firstChild`.
1717
3. The `data` property of the comment is its contents (inside `<!--...-->`): `"BODY"`.

0 commit comments

Comments
 (0)