romancow / dimdom

A small, simple way to represent a DOM - a “diminished DOM”
MIT License
0 stars 0 forks source link

`create` should return a DocumentFragment #6

Closed romancow closed 8 years ago

romancow commented 8 years ago

Instead of using the passed document to create elements, create should get a DocumentFragment (via document.createDocumentFragment()), use it to create and add elements, then return it. This method, according to docs, is more efficient.