From c8a52a182bd6d0034698c9973b98f6f17212a680 Mon Sep 17 00:00:00 2001 From: Knox Jarvis <45022934+knoxj1@users.noreply.github.com> Date: Thu, 4 Feb 2021 18:24:48 -0500 Subject: [PATCH 1/2] Add comments to article.md I do not think it's likely but I do not want anyone to mistake those lines for legitimate JS expressions. I modified those two lines to match the format of pretty much every other comment in the article. --- 2-ui/4-forms-controls/1-form-elements/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2-ui/4-forms-controls/1-form-elements/article.md b/2-ui/4-forms-controls/1-form-elements/article.md index 6c7e18ac..860c1b86 100644 --- a/2-ui/4-forms-controls/1-form-elements/article.md +++ b/2-ui/4-forms-controls/1-form-elements/article.md @@ -11,8 +11,8 @@ Document forms are members of the special collection `document.forms`. That's a so-called "named collection": it's both named and ordered. We can use both the name or the number in the document to get the form. ```js no-beautify -document.forms.my - the form with name="my" -document.forms[0] - the first form in the document +document.forms.my; // the form with name="my" +document.forms[0] // the first form in the document ``` When we have a form, then any element is available in the named collection `form.elements`. From dd9833ccecb7624a7049361adc5244ea644af375 Mon Sep 17 00:00:00 2001 From: Knox Jarvis <45022934+knoxj1@users.noreply.github.com> Date: Wed, 10 Feb 2021 10:34:10 -0500 Subject: [PATCH 2/2] Update 2-ui/4-forms-controls/1-form-elements/article.md Co-authored-by: Muhammed Zakir <8190126+MuhammedZakir@users.noreply.github.com> --- 2-ui/4-forms-controls/1-form-elements/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/4-forms-controls/1-form-elements/article.md b/2-ui/4-forms-controls/1-form-elements/article.md index 860c1b86..7ee502d3 100644 --- a/2-ui/4-forms-controls/1-form-elements/article.md +++ b/2-ui/4-forms-controls/1-form-elements/article.md @@ -12,7 +12,7 @@ That's a so-called "named collection": it's both named and ordered. We can use b ```js no-beautify document.forms.my; // the form with name="my" -document.forms[0] // the first form in the document +document.forms[0]; // the first form in the document ``` When we have a form, then any element is available in the named collection `form.elements`.