node.textContent and node.nodeValue should not throw
Merge pull request #3087 from Manishearth/node-textcontent-throws

node.textContent and node.nodeValue should not throw; r=Ms2ger