document.evaluate(
'//*[starts-with(name(), "custom-")]',
document,
null,
XPathResult.UNORDERED_NODE_ITERATOR_TYPE,
null
)
document.evaluate(
'//*[@*[starts-with(name(), "data-custom-")]]',
document,
null,
XPathResult.UNORDERED_NODE_ITERATOR_TYPE,
null
)