Bouke van der Bijl feef1883d1 Fix bug in IE10 with MutationObserver
There is a difference in behavior between MutationObserver and this shim
in IE10, causing the target for a MutationRecord to be different from
the expect value.

This happens because when you append a node with children in IE10 it'll call the
DOMNodeInserted for the node and its children seperately.

The test has an if statement because the behavior is different between
IE10 and chrome, making both outcomes valid.
2015-01-13 14:03:03 -05:00
2015-01-13 14:03:03 -05:00
2014-11-24 17:04:36 -08:00
2014-10-14 11:31:55 -07:00
2014-10-14 11:31:55 -07:00
2014-11-19 15:20:33 -08:00
2014-11-13 15:46:47 +00:00
2014-11-19 15:20:33 -08:00
2014-11-24 17:04:36 -08:00

webcomponents.js

A suite of polyfills supporting the Web Components specs:

Custom Elements: allows authors to define their own custom tags (spec).

HTML Imports: a way to include and reuse HTML documents via other HTML documents (spec).

Shadow DOM: provides encapsulation by hiding DOM subtrees under shadow roots (spec).

This also folds in polyfills for MutationObserver and WeakMap.

Releases

Pre-built (concatenated & minified) versions of the polyfills are maintained in the tagged versions of this repo. There are two variants:

webcomponents.js includes all of the polyfills.

webcomponents-lite.js includes all polyfills except for shadow DOM.

Manually Building

If you wish to build the polyfills yourself, you'll need node and gulp on your system:

  • install node.js using the instructions on their website
  • use npm to install gulp.js: npm install -g gulp

Now you are ready to build the polyfills with:

# install dependencies
npm install
# build
gulp build

The builds will be placed into the dist/ directory.

Contribute

See the contributing guide

Description
No description provided
Readme 13 MiB
Languages
HTML 62.2%
JavaScript 37.8%