Adds test to support Sizzle getText patch for document fragments. Fixes #10864.