From 11fa8972f1a68baf4a2973f8051baeeff7ea8d11 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Mon, 10 Aug 2020 19:37:23 +0200 Subject: [PATCH] pat-validation: Allow for HTML5 style required attributes without a value. --- CHANGES.md | 2 +- src/pat/validation/index.html | 14 +++++++------- src/pat/validation/tests.js | 10 ++++++++++ src/pat/validation/validation.js | 2 +- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a2d234ba5..b48cf28d3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,11 +4,11 @@ Features ~~~~~~~~ +- pat-validation: Allow for HTML5 style ``required`` attributes without a value. - pat-validation: Added the possibility to check for fields equality - pat-validation: Dont use :input jquery extension for better performance - pat-validation: Update validate.js to 0.13.1 - Prevent "Modernizr.inputtypes is undefined" error - - pat-validation: Do not trigger on empty dates. Fixes: #711 - Remove PhantomJS - we're using ChromeHeadless already. - Simplify package.json and remove unused. diff --git a/src/pat/validation/index.html b/src/pat/validation/index.html index 318ac396e..220969dd2 100644 --- a/src/pat/validation/index.html +++ b/src/pat/validation/index.html @@ -9,16 +9,16 @@
- + - +
Favourite colour - - - - + + + +