Skip to content

Commit

Permalink
Fix broken link to novalidate attribute (#21214)
Browse files Browse the repository at this point in the history
In the "Validating forms using JavaScript" section under "A more detailed example," the novalidate attribute link (currently pointing to /en-US/docs/Web/HTML/Attributes/novalidate) is broken and takes the user to a page not found placeholder.

Proposing to fix the broken link by linking to the attribute description on the form element page (/en-US/docs/Web/HTML/Element/form#attr-novalidate) instead.

novalidate is also mentioned in the HTML attribute reference (en-US/docs/Web/HTML/Attributes), but does not appear to have an anchor link and only refers the reader to the above form element page.
  • Loading branch information
imkevinchu committed Oct 1, 2022
1 parent ead86be commit 85bd5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/learn/forms/form_validation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ First, the HTML. Again, feel free to build this along with us:
</form>
```

This simple form uses the [`novalidate`](/en-US/docs/Web/HTML/Attributes/novalidate) attribute to turn off the browser's automatic validation; this lets our script take control over validation.
This simple form uses the [`novalidate`](/en-US/docs/Web/HTML/Element/form#attr-novalidate) attribute to turn off the browser's automatic validation; this lets our script take control over validation.
However, this doesn't disable support for the constraint validation API nor the application of CSS pseudo-classes like {{cssxref(":valid")}}, etc.
That means that even though the browser doesn't automatically check the validity of the form before sending its data, you can still do it yourself and style the form accordingly.

Expand Down

0 comments on commit 85bd5d5

Please sign in to comment.