Skip to content

DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. #360

@wssgcg1213

Description

@wssgcg1213

in browser-driver: removeChild

removeChild: function removeChild(node, parent) {
    parent = parent || node.parentNode;
    // Maybe has been removed when remove child
    parent.removeChild(node);
},

用了 prism-js, 会对 dom 做有状态的处理

rax 的 vdom -> dom 节点是1对1的, 但是如果dom被处理之后, vdom 不会得到更新, 这个时候 parent 对象在DOM上已经不是 node 的父层节点了 导致报错

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions