code: function endTagInText(p, token) {
      if (!p.fragmentContext && p.scriptHandler && token.tagName === $.SCRIPT)
          p.scriptHandler(p.document, p.openElements.current);
  
      p.openElements.pop();
      p.insertionMode = p.originalInsertionMode;
  }
docs: 12.2.5.4.8 The "text" insertion mode ------------------------------------------------------------------