Handle doctype.textContent correctly.

I confused Doctype and DocumentFragment nodes when implementing.