,
                document.getElementById('closed-by-open-json'));
  }

  if (closedOnOpen instanceof Promise) {
    when(run, containmentStackFor, textContentModel, canContain);
  } else {
    finish(closedOnOpen);
  }
}());
</script>


<h3 id="closed-by-close">Close tags close which elements</h3>
<p>Which <code>C</code> close <code>T</code> in
   <code>&lt;C&gt;&lt;T&gt;&lt;/C&gt;X&lt;/T&gt;</code>
   leading to X being a sibling of the element T instead of its child as it
   would be if parsed as <code>&