$ fragment/shadow dom tests

- document fragments requires special handing w/o getElementsByClassName/TagName
document fragment fix for safari, comments

- Safari 8 DocumentFragment does not have getElementById, other browsers do