Implement restrictions on the children of Document nodes.
auto merge of #1170 : Ms2ger/servo/pre-insert-document, r=jdm