Safari fix for queryHost: avoid using element tree in fragments, use node tree instead.