Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data-pristine-attributes should always be used when the 2 versions of the attribute exists #96

Open
soleneggd opened this issue Jul 27, 2023 · 0 comments

Comments

@soleneggd
Copy link

As mentionned in #10, the pristine pattern validation does not respect the native HTML5 validation format. To ensure a proper validation, we should use the 2 of them on a input by placing the HTML5 RegEx format into the pattern attribute and the JS RegEx format into the data-pristine-pattern.

I tried to do this and I got an error on the pattern attribute RegEx format, but only when I place it after the data-pristine-pattern attribute in my input. When I place it before, there is no problem.

I think that, no matter the order, the data-pristine-attribute shloud always be used if there are the 2 versions of the attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant