I noticed that between step 40 and step 41 of the registration form project, some name attributes are injected into the code.
For eg. in step 40: the following input elements do not have name attributes in the seed code:
<fieldset>
<label for="first-name">Enter Your First Name: <input id="first-name" type="text" required /></label>
<label for="last-name">Enter Your Last Name: <input id="last-name" type="text" required /></label>
<label for="email">Enter Your Email: <input id="email" type="email" required /></label>
<label for="new-password">Create a New Password: <input id="new-password" type="password" pattern="[a-z0-5]{8,}" required /></label>
</fieldset>
But in step 41, the seed code shows this (the name attributes are added):
<fieldset>
<label for="first-name">Enter Your First Name: <input id="first-name" name="first-name" type="text" required /></label>
<label for="last-name">Enter Your Last Name: <input id="last-name" name="last-name" type="text" required /></label>
<label for="email">Enter Your Email: <input id="email" name="email" type="email" required /></label>
<label for="new-password">Create a New Password: <input id="new-password" name="new-password" type="password" pattern="[a-z0-5]{8,}" required /></label>
</fieldset>
I checked the files in the repo to double check that my browser wasn’t doing something weird and I copied the code above directly from the files in the repo.
I’m pretty sure that step 41 used to be for adding names to submittable elements but now only the last fieldset needs them?
I tried to check the history of the step but the last change was in December it seems and didn’t touch this code. (And in my mind I am thinking, was I dreaming that this step used to be different?)
My GitHub skills are not well developed so I wasn’t able to see all of that Randell. Were you able to find any reason for the change that added the name attributes?
okay, it doesn’t seem to be due to an intentional curriculum change so I will open an issue to restore the seed code to what it was (minus the name attributes in the top 2 fieldsets - not including the radio buttons)
thanks for the help! (let me know sometime how I can learn how to backtrack in the history like that! I went back 2 revisions and hit a list of changes that I didn’t understand and gave up!)