diff options
author | Moonchild <git-repo@palemoon.org> | 2019-05-06 14:17:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-06 14:17:55 +0000 |
commit | d0b65e8b38ddd1c9dde816941eccac5094957f72 (patch) | |
tree | cd8526eba923a1ce954c92f54466bb86399ac4a3 /toolkit/components/reader/JSDOMParser.js | |
parent | 12d23fb00559d91cc1dc1bf4e74e30caabd22ad5 (diff) | |
parent | 5c350eebcda338152572aea64400a07db5ce2ff4 (diff) | |
download | UXP-d0b65e8b38ddd1c9dde816941eccac5094957f72.tar UXP-d0b65e8b38ddd1c9dde816941eccac5094957f72.tar.gz UXP-d0b65e8b38ddd1c9dde816941eccac5094957f72.tar.lz UXP-d0b65e8b38ddd1c9dde816941eccac5094957f72.tar.xz UXP-d0b65e8b38ddd1c9dde816941eccac5094957f72.zip |
Merge pull request #1080 from Ascrod/readerview
Reader Updates
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 !== ">") { |