OLD | NEW |
1 webcomponents.js | 1 webcomponents.js |
2 ================ | 2 ================ |
3 | 3 |
4 [![Join the chat at https://gitter.im/webcomponents/webcomponentsjs](https://bad
ges.gitter.im/Join%20Chat.svg)](https://gitter.im/webcomponents/webcomponentsjs?
utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | 4 [![Build Status](https://travis-ci.org/webcomponents/webcomponentsjs.svg?branch=
master)](https://travis-ci.org/webcomponents/webcomponentsjs) |
5 | 5 |
6 A suite of polyfills supporting the [Web Components](http://webcomponents.org) s
pecs: | 6 A suite of polyfills supporting the [Web Components](http://webcomponents.org) s
pecs: |
7 | 7 |
8 **Custom Elements**: allows authors to define their own custom tags ([spec](http
s://w3c.github.io/webcomponents/spec/custom/)). | 8 **Custom Elements**: allows authors to define their own custom tags ([spec](http
s://w3c.github.io/webcomponents/spec/custom/)). |
9 | 9 |
10 **HTML Imports**: a way to include and reuse HTML documents via other HTML docum
ents ([spec](https://w3c.github.io/webcomponents/spec/imports/)). | 10 **HTML Imports**: a way to include and reuse HTML documents via other HTML docum
ents ([spec](https://w3c.github.io/webcomponents/spec/imports/)). |
11 | 11 |
12 **Shadow DOM**: provides encapsulation by hiding DOM subtrees under shadow roots
([spec](https://w3c.github.io/webcomponents/spec/shadow/)). | 12 **Shadow DOM**: provides encapsulation by hiding DOM subtrees under shadow roots
([spec](https://w3c.github.io/webcomponents/spec/shadow/)). |
13 | 13 |
14 This also folds in polyfills for `MutationObserver` and `WeakMap`. | 14 This also folds in polyfills for `MutationObserver` and `WeakMap`. |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ### ShadowCSS: :host(.zot:not(.bar:nth-child(2))) doesn't work <a id="nestedpare
ns"></a> | 146 ### ShadowCSS: :host(.zot:not(.bar:nth-child(2))) doesn't work <a id="nestedpare
ns"></a> |
147 ShadowCSS `:host()` rules can only have (at most) 1-level of nested parentheses
in its argument selector under ShadowCSS. For example, `:host(.zot)` and `:host(
.zot:not(.bar))` both work, but `:host(.zot:not(.bar:nth-child(2)))` does not. | 147 ShadowCSS `:host()` rules can only have (at most) 1-level of nested parentheses
in its argument selector under ShadowCSS. For example, `:host(.zot)` and `:host(
.zot:not(.bar))` both work, but `:host(.zot:not(.bar:nth-child(2)))` does not. |
148 | 148 |
149 ### HTML imports: document.currentScript doesn't work as expected <a id="current
script"></a> | 149 ### HTML imports: document.currentScript doesn't work as expected <a id="current
script"></a> |
150 In native HTML Imports, document.currentScript.ownerDocument references the impo
rt document itself. In the polyfill use document._currentScript.ownerDocument (n
ote the underscore). | 150 In native HTML Imports, document.currentScript.ownerDocument references the impo
rt document itself. In the polyfill use document._currentScript.ownerDocument (n
ote the underscore). |
151 | 151 |
152 ### execCommand and contenteditable isn't supported under Shadow DOM <a id="exec
command"></a> | 152 ### execCommand and contenteditable isn't supported under Shadow DOM <a id="exec
command"></a> |
153 See [#212](https://github.com/webcomponents/webcomponentsjs/issues/212) | 153 See [#212](https://github.com/webcomponents/webcomponentsjs/issues/212) |
154 | 154 |
155 `execCommand`, and `contenteditable` aren't supported under the ShadowDOM polyfi
ll, with commands that insert or remove nodes being especially prone to failure. | 155 `execCommand`, and `contenteditable` aren't supported under the ShadowDOM polyfi
ll, with commands that insert or remove nodes being especially prone to failure. |
OLD | NEW |