support dom/selector config