Raw HTML may be shown in validation if checkbox is not checked

Created on 25 July 2016, over 8 years ago
Updated 10 May 2024, 7 months ago

If a user does not check the checkbox, they get an ugly validation message which may include HTML, for example
I agree to the <a href="/node/52213" hreflang="en">Terms and Conditions</a>. field is required.

Since HTML input with links is such a normal thing, it might be possible to use the fieldset name in the validation message instead of using the checkbox title.

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rfay Palisade, CO, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Status changed to Closed: outdated 7 months ago
  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I guess it's an old issue.
    All modern browsers don't allow to submit forms with empty/unchecked required fields.

    tested with Firefox, chrome, and chromium.

Production build 0.71.5 2024