Commit Graph

13 Commits (master)

Author SHA1 Message Date
Dan Burzo 1a61a23f68
Readability on npm (#608)
* Initial work on preparing Readability for npm

* Adjust some require()s

* Point package.json to index.js

* Add Node.js instructions to README

* Use ES6 in eslint
4 years ago
Gijs Kruitbosch 30611cc57f Fix quotes issues in test and benchmark files 6 years ago
Gijs Kruitbosch 8fec62d246 Strip XML namespaces from tag names to deal with broken serializations 6 years ago
Gijs Kruitbosch d598baf02b Improve URL handling in JSDOMParser and Readability.js
This change ups the required node version to 7.0 because it relies on the builtin url module.

We now pass a url when constructing a jsdom document or JSDOMParser document.
Because this is an API change, I'm increasing the package version.

Ultimately, I would like to remove the  argument from the readability constructor. It should
use the documentURI from the document it is passed.
6 years ago
Evan Tseng 0f147374b7 Bug 1323861 - Remove the readScript method, r=Gijs 7 years ago
Gijs 1a12befa41 Fix code style, tighten up eslint rules (#301) 8 years ago
Gijs Kruitbosch 2e1cb3f467 Fix issue #251 by making JSDOMParser expect XML and stop making excuses for 'self-closed' things, when all that does is cause trouble 8 years ago
Gijs Kruitbosch 0ff82de0f4 Implement createTextNode, do more relaxed escaping there, update testcase. 9 years ago
Nicolas Perriault d725ebc953 Fixes #99: JSDOMParser tag name case handling. r=@gijsk 9 years ago
Gijs Kruitbosch 62801faa0e Fix JSDOMParser to do some HTML escaping and identify as JSDOMParser + add tests 9 years ago
Nicolas Perriault 1e14d47bb7 Added benchmarks. 9 years ago
Gijs Kruitbosch 8ddba60425 Fix script parsing to ignore closing tags in comments 9 years ago
Gijs Kruitbosch f9e770ad3b Write a bunch of tests for jsdomparser 9 years ago