Allow any DOM structure

Refs #103 #101
Fixes #108