Document roots should accept children.
This commit is contained in:
parent
571c4bbd52
commit
d058c83ac0
|
@ -280,6 +280,9 @@ impl<'gc> XMLNode<'gc> {
|
||||||
match &mut *self.0.write(mc) {
|
match &mut *self.0.write(mc) {
|
||||||
XMLNodeData::Element {
|
XMLNodeData::Element {
|
||||||
ref mut children, ..
|
ref mut children, ..
|
||||||
|
}
|
||||||
|
| XMLNodeData::DocumentRoot {
|
||||||
|
ref mut children, ..
|
||||||
} => {
|
} => {
|
||||||
children.push(child);
|
children.push(child);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue