RemexHtml/TreeBuilder/Dispatcher.php
public function restoreMode() {
		if ( $this->originalMode === null ) {
			throw new TreeBuilderError( "original insertion mode is not set" );
		}
		$mode = $this->mode = $this->originalMode;
		$this->originalMode = null;
		$this->handler = $this->dispatchTable[$mode];
		return $this->handler;
	}
public function restoreMode() {
		if ( $this->originalMode === null ) {
			throw new TreeBuilderError( "original insertion mode is not set" );
		}
		$mode = $this->mode = $this->originalMode;
		$this->originalMode = null;
		$this->handler = $this->dispatchTable[$mode];
		return $this->handler;
	}
public function restoreMode ( ) { if ( $ this -> originalMode === null ) { throw new TreeBuilderError ( "original insertion mode is not set" ) ; } $ mode = $ this -> mode = $ this -> originalMode ; $ this -> originalMode = null ; $ this -> handler = $ this -> dispatchTable [ $ mode ] ; return $ this -> handler ; }
Switch the insertion mode to the original insertion mode and return the
new handler.

@return InsertionMode
Switch the insertion mode to the original insertion mode and return the new handler .