| Index: tools/dom/templates/html/impl/impl_Node.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate
|
| index d871dd37161ee4ab314b539622815be627e994bb..c9330567b9fb5f163a43fe62622867e5b7daf08f 100644
|
| --- a/tools/dom/templates/html/impl/impl_Node.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Node.darttemplate
|
| @@ -114,7 +114,12 @@ $endif
|
| bool remove(Object object) {
|
| if (object is! Node) return false;
|
| Node node = object;
|
| +$if JSINTEROP
|
| + // We aren't preserving identity of nodes in JSINTEROP mode
|
| + if (_this != node.parentNode) return false;
|
| +$else
|
| if (!identical(_this, node.parentNode)) return false;
|
| +$endif
|
| _this._removeChild(node);
|
| return true;
|
| }
|
|
|