markup (add data attribute to node) the nodes which is suitable