Make all renderer functions consistently return document fragments.