From 812daa9c6bcd8981044684ce9082c8f578d4c84e Mon Sep 17 00:00:00 2001 From: Rizky <41568558+James868@users.noreply.github.com> Date: Mon, 26 Aug 2019 09:24:45 +0000 Subject: [PATCH] Fix typo --- .../03-dom-navigation/3-navigation-links-which-null/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/03-dom-navigation/3-navigation-links-which-null/solution.md b/2-ui/1-document/03-dom-navigation/3-navigation-links-which-null/solution.md index 266d26b1..d7693632 100644 --- a/2-ui/1-document/03-dom-navigation/3-navigation-links-which-null/solution.md +++ b/2-ui/1-document/03-dom-navigation/3-navigation-links-which-null/solution.md @@ -1,5 +1,5 @@ 1. Yes, true. The element `elem.lastChild` is always the last one, it has no `nextSibling`. -2. No, wrong, because `elem.children[0]` is the first child *among elements*. But there may exist non-element nodes before it. So `previousSibling` may be a text node. Also, if there are no children, then trying to access `elem.children[0]` +2. No, wrong, because `elem.children[0]` is the first child *among elements*. But there may exist non-element nodes before it. So `previousSibling` may be a text node. Please note: for both cases if there are no children, then there will be an error.