Support for building partial DOM trees