mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-25 22:00:41 -04:00
fix(curriculum): remove redundant name attribute (#48613)
fix:Redundant name attribute
This commit is contained in:
@@ -111,7 +111,7 @@ You should not give any of the `fieldset` elements a `name` attribute.
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -56,7 +56,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.fontSize, '16px')
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -54,7 +54,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('h1, p')?.textAlign, 'cent
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -66,7 +66,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('form')?.width, '60vw');
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -60,7 +60,7 @@ assert.equal(fieldset?.paddingRight, '0px');
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -42,7 +42,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('fieldset')?.borderBottom,
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -81,7 +81,7 @@ assert.equal(selFunc(['input, textarea, select', 'input, select, textarea', 'sel
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -57,7 +57,7 @@ assert(document.querySelectorAll('fieldset:nth-child(2) input')?.[2]?.classList?
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -48,7 +48,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('.inline')?.width, 'unset'
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -60,7 +60,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('.inline')?.marginLeft, '0
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -44,7 +44,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('.inline')?.verticalAlign,
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -59,7 +59,7 @@ assert.equal(selFunc(['input, textarea', 'textarea, input'].find(selFunc))?.bord
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -52,7 +52,7 @@ assert.equal(selFunc(['input, textarea', 'textarea, input'].find(selFunc))?.minH
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -56,7 +56,7 @@ assert.isEmpty(new __helpers.CSSHelp(document).getStyle('input, textarea')?.minH
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -62,7 +62,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('input[type="submit"]')?.w
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -51,7 +51,7 @@ assert.isEmpty(new __helpers.CSSHelp(document).getStyle('input[type="submit"]')?
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -48,7 +48,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('input[type="submit"]')?.f
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -48,7 +48,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('input[type="submit"]')?.b
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -51,7 +51,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('input[type="submit"]')?.m
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -50,7 +50,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('input[type="file"]')?.pad
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -48,7 +48,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('form')?.paddingBottom, '2
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -50,7 +50,7 @@ assert.equal(new __helpers.CSSHelp(document).getStyle('a')?.color, 'rgb(223, 223
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" class="inline" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" class="inline" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" class="inline" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
@@ -55,7 +55,7 @@ assert(borderBottom === 'none' || borderBottom === 'medium none');
|
||||
<fieldset>
|
||||
<label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
|
||||
<label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
|
||||
<label for="terms-and-conditions" name="terms-and-conditions">
|
||||
<label for="terms-and-conditions">
|
||||
<input id="terms-and-conditions" type="checkbox" required name="terms-and-conditions" /> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions</a>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user