Permalink
Browse files

Event compatible with Android 4

  • Loading branch information...
1 parent 9353e12 commit eaafb9daf6b630240b5756ed455a9d5c9da7c1dd @WebReflection committed Apr 22, 2016
Showing with 43 additions and 37 deletions.
  1. +4 −2 README.md
  2. +1 −1 build/dom4.js
  3. +19 −17 build/dom4.max.js
  4. +19 −17 src/dom4.js
View
@@ -7,7 +7,7 @@ DOM4
Many thanks to [cdnjs](http://www.cdnjs.com) for hosting this script. Following an example on how to include it.
```html
<script
- src="//cdnjs.cloudflare.com/ajax/libs/dom4/1.8.2/dom4.js"
+ src="//cdnjs.cloudflare.com/ajax/libs/dom4/1.8.3/dom4.js"
>/* DOM4 */</script>
```
@@ -28,7 +28,9 @@ The [implemented test](test/dom4.js) is conform to current specifications.
Other fixes/standardized behaviors include:
- * **new** [Elements as Array subclass](http://www.w3.org/TR/2015/WD-dom-20150428/#elements), so that `el.query` is the relative equivalent of `el.querySelector` and `el.queryAll` is the relative equivalent of `Array.prototype.slice.call(el.querySelectorAll(css))`. Relative means `node.query('body p')` won't return any `p` element contained in `node`, while old `querySelector` would.
+ * **new** [DOM Listener: capture, passive, and once](https://www.webreflection.co.uk/blog/2016/04/17/new-dom4-standards)
+ * fully normalized `KeyboardEvent`, `MouseEvent` and the latest way to create `new Event('type')`
+ * [Elements as Array subclass](http://www.w3.org/TR/2015/WD-dom-20150428/#elements), so that `el.query` is the relative equivalent of `el.querySelector` and `el.queryAll` is the relative equivalent of `Array.prototype.slice.call(el.querySelectorAll(css))`. Relative means `node.query('body p')` won't return any `p` element contained in `node`, while old `querySelector` would.
* **document.queryAll(css)** returns an Array so there's no need to use `Array.prototype.slice.call(document.querySelectorAll(str))` or `[...document.querySelectorAll(str)]` or `Array.from(document.querySelectorAll(css))`, just `queryAll` for a list or `query` to get one element. We can forget the `Selector` bit \o/
* [classList](http://www.w3.org/TR/dom/#domtokenlist), with forced fixes for iOS 5.1 and Nokia ASHA Xpress Browser and early implementations
* [CustomEvent](http://www.w3.org/TR/dom/#customevent) constructor for all browsers down to IE8
Oops, something went wrong.

0 comments on commit eaafb9d

Please sign in to comment.