Skip to content

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

Description

@soleneggd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions