Remove IS_CONNECTED flag when node is removed from the doc

This commit is contained in:
Fernando Jiménez Moreno 2019-02-20 10:57:50 +01:00
parent d7b6a6f509
commit 39c96acbbe

View file

@ -355,6 +355,7 @@ impl Node {
// Out-of-document elements never have the descendants flag set.
node.set_flag(
NodeFlags::IS_IN_DOC |
NodeFlags::IS_CONNECTED |
NodeFlags::HAS_DIRTY_DESCENDANTS |
NodeFlags::HAS_SNAPSHOT |
NodeFlags::HANDLED_SNAPSHOT,