Commit Graph

27 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
S Nikhill 59570ba7fc
Replace a Dead Link in Comment (#606)
* Update Links in Comments

Update a link in comments to point to a better source.
Remove a dead link. (Link Removed: http://blog.cdleary.com/2012/01/string-representation-in-spidermonkey/#ropes)
4 years ago
Gijs Kruitbosch dc34dfd8fa Fix #580 by not using live node lists when removing items 4 years ago
PalmerAL 814f0a3884 Add support for detecting lazy-loaded images (#542)
Add support for detecting lazy-loaded images using `src` or `srcset` attributes.
5 years ago
Gijs Kruitbosch 7cf95bd427 Fix same-line loops and if statements 6 years ago
Gijs Kruitbosch d9f7bb2965 Fix quotes 6 years ago
Gijs Kruitbosch 8fec62d246 Strip XML namespaces from tag names to deal with broken serializations 6 years ago
Gijs Kruitbosch 8e92a1fa19 Reuse textNode variable for CDATA blocks, too 6 years ago
David A Roberts 611e9e3a6f JSDOMParser: handle CDATA sections 6 years ago
Gijs Kruitbosch 8c02a0d34c Fix #283 and remove hidden nodes 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 e830ac9dd8 Fix eslint issues identified in m-c 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
Nicolas Perriault 8806e999d1 Added support for the wbr html tag to JSDOMParser. 9 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
Gijs Kruitbosch 8ddba60425 Fix script parsing to ignore closing tags in comments 9 years ago
Gijs Kruitbosch bc7873d313 Fix innerHTML children assignments to help fix issue #76. 9 years ago
Gijs Kruitbosch 14afc21b96 Fix code to ignore titles when we already have one. 9 years ago
Gijs Kruitbosch eb81444946 Improve logic to rely on children instead of childNodes 9 years ago
Gijs Kruitbosch f9e770ad3b Write a bunch of tests for jsdomparser 9 years ago
Gijs Kruitbosch 9c4648193c Fix JSDOMParser to have support for X-Element-Y (for X from first, last, next, previous; Y from Child, Element) 9 years ago
Gijs Kruitbosch b5e905ef6b Fix JSDOMParser to deal with scripts and all whitespace, not just spaces, and s/let/var/. 9 years ago
Gijs Kruitbosch cd89e18647 Import the tree's JSDOMParser 9 years ago