ok, but can the nodeType ever be anything else than a number?

The main thing is probably to be consistent here. Wrapping everything in {} seems like a good idea.