diff --git a/ext/dom/inner_html_mixin.c b/ext/dom/inner_html_mixin.c
index 651a71bace2..262c85411aa 100644
--- a/ext/dom/inner_html_mixin.c
+++ b/ext/dom/inner_html_mixin.c
@@ -359,7 +359,6 @@ zend_result dom_element_inner_html_write(dom_object *obj, zval *newval)
}
}
- /* We skip the steps involving the template element as context node since we don't do special handling for that. */
dom_remove_all_children(context_node);
return php_dom_pre_insert(obj->document, fragment, context_node, NULL) ? SUCCESS : FAILURE;
}