escapeReplace = function(c) {
      switch (c) {
        case '&':
          return '&amp;';
        case '<':
          return '&lt;';
        case '>':
          return '&gt;';
        case '"':
          return '&quot;';
        case '\u00A0':
          return '&nbsp;';
      }
    }
The `bootstrap` method is called automatically and "fixes" all
      <template> elements in the document referenced by the `doc` argument.