Merge pull request #447 from davidbludlow/patch-2

MD typo in <!--BODY-->
This commit is contained in:
Ilya Kantor 2018-06-23 14:48:07 +03:00 committed by GitHub
commit 63b0d00dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,6 @@ The answer: **`BODY`**.
What's going on step by step:
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.
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.
2. The comment is now the only child node, so we get it in `body.firstChild`.
3. The `data` property of the comment is its contents (inside `<!--...-->`): `"BODY"`.