Commit Graph

20 Commits (8e92a1fa19e4c80ff925964d4fbeae190091ebb9)

Author SHA1 Message Date
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 9 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