Doctype nodes should be represented as text nodes to ActionScript (if they somehow grab hold of them)

This commit is contained in:
David Wendt 2019-12-29 20:24:51 -07:00
parent 6b4bbee195
commit fd14d0c9df
1 changed files with 1 additions and 0 deletions

View File

@ -240,6 +240,7 @@ pub fn create_xmlnode_proto<'gc>(
.map(|n| {
match n.node_type() {
xml::DOCUMENT_NODE => xml::ELEMENT_NODE,
xml::DOCUMENT_TYPE_NODE => xml::TEXT_NODE,
xml::COMMENT_NODE => xml::TEXT_NODE,
n => n,
}