refs #18288, add dom-attr tests

(cherry picked from commit 2d2e981b5129c6dbca28bc18895a72c3e9305d3a)