Implement ParentNode.children for Document and Element

Fixes #2186