Add method of dom matching to config