Implement restrictions on the children of Document nodes.