better-details-polyfill
better-details-polyfill copied to clipboard
complete <details> polyfill using better-dom
I was trying to use this as a polyfill for IE 11 & Edge, sadly it doesn't work. I used the latest better DOM and the latest better details polyfill....
It would be nice if this could also be installed from npm (e.g. for using with a bundler).
```bash Unable to get property 'create' of undefined or null reference ``` Edge 38.14 Edge HTML 14.14 ```js var hasNativeSupport = typeof DOM.create("details").get("open") === "boolean"; ```  
Here https://github.com/chemerisuk/better-details-polyfill/blob/master/dist/better-details-polyfill.js#L82 styles should not be included if browser supports details natively
If content after `` isn't wrapped in tag, polyfill won't work. Example on codepen: http://codepen.io/ThiRaBrTNK/pen/Ejpmgz