Comments (7)
I managed this with PostCSS: http://astexplorer.net/#/XT995gAElO/2
from hyperform.
New CSS validators supported via PostCSS-Plugin: https://github.com/hyperform/postcss-hyperform
Thanks again for the idea!
from hyperform.
Thanks! That's useful, yes.
-
month
andweek
are already supported: e.g., this method is used inelement.valueAsDate
. -
forceSpellcheck()
. Hm, I need to look around, if there is an API to trigger spell checks in browsers. -
allowfullscreen
seems to be off-topic, since we do not targetiframe
s -
reportValidity()
is already supported. You can use it in either way:
js element.reportValidity(); // via the polyfill, or... hyperform.reportValidity(element); // ...via the library
-
:user-invalid
this is a great selector! I'll try to wrap my head around how to bring that to Hyperform. For the time being, you can simulate it with.hf-validated.hf-invalid
or set your own classes withhyperform({classes:{...}})
.
from hyperform.
Thanks! Would it be OK, if I'd take the code as base of a MIT licensed PostCSS plugin that handles pseudo-class
from hyperform.
Absolutely. Happy to contribute.
from hyperform.
Re: forceSpellcheck()
: http://stackoverflow.com/a/5221809/113195 Hm.
from hyperform.
forceSpellcheck
being the last on the list: I don't think it's important enough for Hyperform core to justify lots of code for it. But when #14 is addressed and fully documented, there's nothing to hinder writing a Hyperform plugin to do spell checking with the above mention method from StackOverflow.
from hyperform.
Related Issues (20)
- Support the formdata event
- Validation CSS-classes don't reset on radio (group) revalidation HOT 2
- StepDown function not working HOT 5
- test is not a function HOT 5
- Warnings positioned incorrectly when input is contained in a CSS grid HOT 3
- pattern validator needs the Unicode flag set
- Element.validity.badInput is not resolved for input type text in IE 9 HOT 2
- Using Hyperform with AJAX lookup... HOT 4
- Add declarations file for TypeScript
- Required select boxes do not consider the placeholder option
- password confirm addValidator HOT 2
- <form> novalidate is ignored - email field fires validation on blur HOT 1
- How to move validation classes from input element to parent HOT 3
- Decide, if the formdata event is in our scope
- Should we add non-standard fieldset.checkValidity()?
- Several hyperform instances do not share a global registry
- Form valid event issued when elements are invalid. HOT 4
- Allow set message to return a function HOT 2
- Typescript Definitions Not Available HOT 3
- Support the requestSubmit() method on HTMLFormElements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyperform.