You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2020. It is now read-only.
* @returns {Array} An array of states, or undefined if enableStateTracking is off
615
620
*
616
621
* @description
617
622
* Get the states of the HTML5 page
618
623
*
619
624
*/
620
625
Parser.prototype.getStates=function(){
621
-
returnthis.states.slice();
626
+
returnthis.states&&this.states.slice();
622
627
};
623
628
624
629
/**
625
630
* @function Parser#setInitState
631
+
* @alias Parser#reset
626
632
*
627
633
* @param {integer} state - The initial state of the HTML5 Context Parser.
628
634
*
629
635
* @description
630
-
* Set the init state of HTML5 Context Parser.
636
+
* Set the init state of HTML5 Context Parser. Once this is called, any existing states will be reset, in order to make use of the init state for processing.
0 commit comments