Skip to content

Commit

Permalink
feat(shadow-dom): adds a 'experimental' option to the shadow-dom poly…
Browse files Browse the repository at this point in the history
…fill which may reduce bugs in older browsers such as IE and Edge <=15
  • Loading branch information
wessberg committed Apr 1, 2019
1 parent 12d4b6a commit fb1a8f9
Show file tree
Hide file tree
Showing 6 changed files with 1,223 additions and 49 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ For example: `systemjs|variant=s` selects the _s_ variant, while `systemjs|varia
| `fetch` | Patches the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). _This will be automatically applied if the Fetch polyfill is being loaded along with Zone_. |
| `resizeobserver` | Patches the [ResizeObserver API](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver). _This will be automatically applied if the ResizeObserver polyfill is being loaded along with Zone_. |

#### Extra options for `shadow-dom`

You can pass the `experimental` option to `shadow-dom` (or any of its aliases such as `web-components`) to base it on some experimental features that may reduce bugs in older browsers such as IE and Edge <= 15.

### Usage in a Web Worker/Service Worker

You can also request polyfills from a Worker. It is highly recommended that you pass in the [`context`](#the-context-option) query parameter with a value of `worker` to instruct `Polyfiller` to optimize polyfills for a Worker environment, as well as to
Expand Down
Loading

0 comments on commit fb1a8f9

Please sign in to comment.