Digest strings, nodes and selectors into a dom element