value from text node or from data attribute