src/http/get-index/ssr.js
/**
     * @param callback Called once parsing has completed.
     * @param options Settings for the handler.
     * @param elementCB Callback whenever a tag is closed.
     */
@param callback Called once parsing has completed.
@param options Settings for the handler.
@param elementCB Callback whenever a tag is closed.
@param callback Called once parsing has completed . @param options Settings for the handler . @param elementCB Callback whenever a tag is closed .
function DomHandler(callback, options, elementCB) {
      this.dom = [];
      this.root = new node_1.Document(this.dom);
      this.done = false;
      this.tagStack = [this.root];
      this.lastNode = null;
      this.parser = null;
      if (typeof options === "function") {
        elementCB = options;
        options = defaultOpts;
      }
      if (typeof callback === "object") {
        options = callback;
        callback = undefined;
      }
      this.callback = callback !== null && callback !== void 0 ? callback : null;
      this.options = options !== null && options !== void 0 ? options : defaultOpts;
      this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
    }
function DomHandler ( callback , options , elementCB ) { this . dom = [ ] ; this . root = new node_1 . Document ( this . dom ) ; this . done = false ; this . tagStack = [ this . root ] ; this . lastNode = null ; this . parser = null ; if ( typeof options === "function" ) { elementCB = options ; options = defaultOpts ; } if ( typeof callback === "object" ) { options = callback ; callback = undefined ; } this . callback = callback !== null && callback !== void 0 ? callback : null ; this . options = options !== null && options !== void 0 ? options : defaultOpts ; this . elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null ; }
@param callback Called once parsing has completed.
@param callback Called once parsing has completed .
/** The elements of the DOM */ /** The root element for the DOM */ /** Indicated whether parsing has been completed. */ /** Stack of open tags. */ /** A data node that is still being written to. */ /** Reference to the parser instance. Used for location information. */ // Make it possible to skip arguments, for backwards-compatibility