updated the docs to indicate that labels do not necessarily have to be text nodes