diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-23 17:41:09 -0400 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-04-27 07:43:11 -0400 |
commit | ccc4363462053edfc9cf616afa7f86b3244aaff6 (patch) | |
tree | 5e8ddd9f992b55fba9c4544f2510876c51577551 /toolkit/components/reader/JSDOMParser.js | |
parent | e0116ac2b78eb4e621a4d0769e01f8358a6d661c (diff) | |
download | UXP-ccc4363462053edfc9cf616afa7f86b3244aaff6.tar UXP-ccc4363462053edfc9cf616afa7f86b3244aaff6.tar.gz UXP-ccc4363462053edfc9cf616afa7f86b3244aaff6.tar.lz UXP-ccc4363462053edfc9cf616afa7f86b3244aaff6.tar.xz UXP-ccc4363462053edfc9cf616afa7f86b3244aaff6.zip |
Update Readability from mozilla-central release branch (FF 66.0.3). Tag #361.
Diffstat (limited to 'toolkit/components/reader/JSDOMParser.js')
-rw-r--r-- | toolkit/components/reader/JSDOMParser.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/toolkit/components/reader/JSDOMParser.js b/toolkit/components/reader/JSDOMParser.js index debdb08eb..ab2f503e1 100644 --- a/toolkit/components/reader/JSDOMParser.js +++ b/toolkit/components/reader/JSDOMParser.js @@ -691,7 +691,7 @@ // the attribute value will be HTML escaped. var val = attr.value; var quote = (val.indexOf('"') === -1 ? '"' : "'"); - arr.push(" " + attr.name + '=' + quote + val + quote); + arr.push(" " + attr.name + "=" + quote + val + quote); } if (child.localName in voidElems && !child.childNodes.length) { @@ -970,7 +970,7 @@ strBuf.push(c); c = this.nextChar(); } - var tag = strBuf.join(''); + var tag = strBuf.join(""); if (!tag) return false; @@ -981,7 +981,9 @@ while (c !== "/" && c !== ">") { if (c === undefined) return false; - while (whitespace.indexOf(this.html[this.currentChar++]) != -1); + while (whitespace.indexOf(this.html[this.currentChar++]) != -1) { + // Advance cursor to first non-whitespace char. + } this.currentChar--; c = this.nextChar(); if (c !== "/" && c !== ">") { |