Merge pull request #447 from davidbludlow/patch-2
MD typo in <!--BODY-->
This commit is contained in:
commit
63b0d00dac
1 changed files with 1 additions and 1 deletions
|
@ -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><!--BODY--></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"`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue