Document roots should accept children.

This commit is contained in:
David Wendt 2019-12-21 23:04:53 -05:00
parent 571c4bbd52
commit d058c83ac0
1 changed files with 3 additions and 0 deletions

View File

@ -280,6 +280,9 @@ impl<'gc> XMLNode<'gc> {
match &mut *self.0.write(mc) {
XMLNodeData::Element {
ref mut children, ..
}
| XMLNodeData::DocumentRoot {
ref mut children, ..
} => {
children.push(child);
}