Skip to content

Commit

Permalink
docs: fix a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lddubeau committed Sep 12, 2019
1 parent 9c13099 commit be6bead
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/saxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1003,14 +1003,9 @@ class SaxesParser {
/** @private */
handleTextOutsideRoot() {
// This is essentially a specialized version of captureTo which is optimized
// for performing the ]]> check. A previous version of this code, checked
// ``this.text`` for the presence of ]]>. It simplified the code but was
// very costly when character data contained a lot of entities to be parsed.
//
// Since we are using a specialized loop, we also keep track of the presence
// of non-space characters in the text since these are errors when appearing
// outside the document root element.
//
// for a specialized task. We keep track of the presence of non-space
// characters in the text since these are errors when appearing outside the
// document root element.
const { chunk, limit, i: start } = this;
let nonSpace = false;
// eslint-disable-next-line no-labels, no-restricted-syntax
Expand Down

0 comments on commit be6bead

Please sign in to comment.