hyperform / hyperform

Capture form validation back from the browser

Home Page:https://hyperform.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `hf` prefixed classes for all pseudo-classes

Boldewyn opened this issue · comments

Relevant spec:
https://drafts.csswg.org/selectors/#user-pseudos

:dirty is not completely equivalent to .hf-validated. The first should match all value!=defaultValue elements. The second matches every element, that was validated at least once.

1602dfe adds three more, 87c2724 another one.

:optional is not the same as :not([required]). The former matches only form elements, the latter any element (including <body> and <html>) without an attribute required.