}

  function finish(result) {
    var toSatisfy = textContentModel;
    if (toSatisfy instanceof Promise) {
      textContentModel = sortedMultiMap(result);
      toSatisfy.satisfy();
    }
    displayJson(textContentModel,
                document.getElementById('text-content-model-json'));
  }

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

<h2 id="implied-elements">Implied Elements</h2>
<p>Which elements are 