In findElementEnd, set this.gotElementEnd true when finished.