romancow / dimdom

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

Option to create elements as shadow DOMs #16

Open romancow opened 7 years ago

romancow commented 7 years ago

We could check for support of the shadow DOM and provide an option to create/attach a DimDom element as that instead of as a document fragment.

Would using two different possible implementation like this cause other complications?

romancow commented 7 years ago

Would definitely need to make this optional, even if the browser supports a shadow DOM, because I'm pretty sure it would break SVG. Maybe I way to even set shadow/fragment per namespace?