From fb38a13978f6e8397005243bc13bc1a20a988e6a Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Mon, 5 Aug 2019 02:13:54 +0300 Subject: [PATCH] minor --- 2-ui/1-document/06-dom-attributes-and-properties/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2-ui/1-document/06-dom-attributes-and-properties/article.md b/2-ui/1-document/06-dom-attributes-and-properties/article.md index 83beeaba..955277b6 100644 --- a/2-ui/1-document/06-dom-attributes-and-properties/article.md +++ b/2-ui/1-document/06-dom-attributes-and-properties/article.md @@ -124,7 +124,7 @@ Here's an extended demo of working with attributes: elem.setAttribute('Test', 123); // (2), writing - alert( elem.outerHTML ); // (3), see it's there + alert( elem.outerHTML ); // (3), see if the attribute is in HTML (yes) for (let attr of elem.attributes) { // (4) list all alert( `${attr.name} = ${attr.value}` ); @@ -260,7 +260,7 @@ Like this: for(let div of document.querySelectorAll('[show-info]')) { // insert the corresponding info into the field let field = div.getAttribute('show-info'); - div.innerHTML = user[field]; // Pete, then age + div.innerHTML = user[field]; // first Pete into "name", then 25 into "age" } ```