patch to add dropUnknownElements behavior