Answers for "attribute name selection"

0

attribute name selection

document.evaluate(
  '//*[@*[starts-with(name(), "data-custom-")]]',
  document, 
  null, 
  XPathResult.UNORDERED_NODE_ITERATOR_TYPE, 
  null
)
Posted by: Guest on February-09-2021
0

attribute name selection

document.evaluate(
  '//*[starts-with(name(), "custom-")]',
  document, 
  null, 
  XPathResult.UNORDERED_NODE_ITERATOR_TYPE, 
  null
)
Posted by: Guest on February-09-2021

Browse Popular Code Answers by Language