pass node instead of document to dnmlib