diff --git a/2-ui/1-document/05-basic-dom-node-properties/article.md b/2-ui/1-document/05-basic-dom-node-properties/article.md index 4934ce39..3a55010b 100644 --- a/2-ui/1-document/05-basic-dom-node-properties/article.md +++ b/2-ui/1-document/05-basic-dom-node-properties/article.md @@ -399,7 +399,7 @@ Compare the two: ``` 1. The first `
` gets the name "as HTML": all tags become tags, so we see the bold name. -2. The second `
` gets the nams "as text", so we literally see `Winnie-the-pooh!`. +2. The second `
` gets the name "as text", so we literally see `Winnie-the-pooh!`. In most cases, we expect the text from a user, and want to treat it as text. We don't want unexpected HTML in our site. An assignment to `textContent` does exactly that.