Skip to content

Readability freezes with 100% CPU on specific URL #580

Closed
@zdila

Description

import jsdom from 'jsdom';
import Readability from 'mozilla-readability';

const url = 'https://www.sec.gov/Archives/edgar/data/1794515/000162828020002344/zoominfos-1.htm';

jsdom.JSDOM.fromURL(url, {
  resources: new jsdom.ResourceLoader()
}).then(doc => {
  const reader = new Readability(doc.window.document);

  return reader.parse(); // this freezes @ 100% CPU
});

Node.js 12
jsdom 16.1.0

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions