Ensure text nodes expose the DOM level 1 API

Since enabling the `withDomLvl1' parsing option, nodes cannot be created
with an object literal. Create new text nodes using the `evaluate`
function to ensure they expose the correct attributes.