mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 784386 - Part 9: Move pageCacheHtml outside of loop. r=lucasr
This commit is contained in:
parent
49399e08b0
commit
100f0212ea
@ -406,14 +406,13 @@ Readability.prototype = {
|
|||||||
* @return Element
|
* @return Element
|
||||||
**/
|
**/
|
||||||
_grabArticle: function (page) {
|
_grabArticle: function (page) {
|
||||||
|
let doc = this._doc;
|
||||||
|
let isPaging = (page !== null ? true: false);
|
||||||
|
page = page ? page : this._doc.body;
|
||||||
|
let pageCacheHtml = page.innerHTML;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
let doc = this._doc;
|
|
||||||
let stripUnlikelyCandidates = this._flagIsActive(this.FLAG_STRIP_UNLIKELYS);
|
let stripUnlikelyCandidates = this._flagIsActive(this.FLAG_STRIP_UNLIKELYS);
|
||||||
let isPaging = (page !== null ? true: false);
|
|
||||||
|
|
||||||
page = page ? page : this._doc.body;
|
|
||||||
|
|
||||||
let pageCacheHtml = page.innerHTML;
|
|
||||||
let allElements = page.getElementsByTagName('*');
|
let allElements = page.getElementsByTagName('*');
|
||||||
|
|
||||||
// First, node prepping. Trash nodes that look cruddy (like ones with the
|
// First, node prepping. Trash nodes that look cruddy (like ones with the
|
||||||
|
Loading…
Reference in New Issue
Block a user