Skip to content

Commit 00d88cf

Browse files
authored
Merge pull request #40 from matteobad/bugfix/doc
Bugfix/doc
2 parents 232341e + d2c5b12 commit 00d88cf

File tree

4 files changed

+3748
-8576
lines changed

4 files changed

+3748
-8576
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
```js
2626
document.addEventListener('onautocomplete', function(e) {
2727
e.target.hasAttribute('autocompleted'); // true or false
28-
e.preventDefault(); // prevent autofill
28+
e.preventDefault(); // prevent autocomplete
2929
// do you stuff...
3030
})
3131
```
@@ -43,22 +43,22 @@ Furthermore this custom event can be prevented like all native events in order t
4343
## Features
4444

4545
* Polyfill for CustomEvent integrated
46-
* CustomEvent on autocomplete
47-
* CustomEvent on autocomplete cancel
48-
* Possibility to prevent autocomplete
46+
* CustomEvent on `onautocomplete`
47+
* CustomEvent on `onautocomplete` cancel
48+
* Possibility to prevent `onautocomplete`
4949

5050
## Browser Support
5151

5252
| CustomEvent | Edge | IE11 | Chrome | Firefox | Safari | Opera | iOS |
5353
| -------------- |:----:|:-----:|:------:|:-------:|:------:|:-----:|:---:|
54-
| `autocomplete` ||||||||
54+
| `onautocomplete` ||||||||
5555

5656
\* This script uses different technics to detect autofill based on the browser:
5757

5858
* **Chrome**, **Opera** and **Safari** uses the pseudo-class `:-webkit-autofill` to trigger a custom animation.
5959
* **Firefox** uses input event on document and checks for a propriety `inputType` property of the event.
6060
* **IE**, **Edge** and **iOS** uses the same input event but they have to check the `data` property.
61-
* **Android** ha not yet been tested but I have reason to believe it works just fine.
61+
* **Android** ha not yet been tested any help is welcomed.
6262

6363
## Demos
6464

0 commit comments

Comments
 (0)