Gijs Kruitbosch
7cf95bd427
Fix same-line loops and if statements
2018-07-14 22:09:00 +01:00
Gijs Kruitbosch
d9f7bb2965
Fix quotes
2018-07-14 14:28:41 +01:00
Gijs Kruitbosch
8fec62d246
Strip XML namespaces from tag names to deal with broken serializations
2018-06-09 09:51:16 +01:00
Gijs Kruitbosch
8e92a1fa19
Reuse textNode variable for CDATA blocks, too
2018-06-09 09:49:25 +01:00
David A Roberts
611e9e3a6f
JSDOMParser: handle CDATA sections
2018-06-08 11:06:01 +01:00
Gijs Kruitbosch
8c02a0d34c
Fix #283 and remove hidden nodes
2018-05-16 21:54:12 +01:00
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.
2018-02-28 11:29:29 +00:00
Evan Tseng
0f147374b7
Bug 1323861 - Remove the readScript method, r=Gijs
2017-02-22 09:39:17 +00:00
Gijs
1a12befa41
Fix code style, tighten up eslint rules ( #301 )
2016-07-19 21:44:27 +01:00
Gijs Kruitbosch
e830ac9dd8
Fix eslint issues identified in m-c
2016-03-08 14:49:51 +00:00
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
2016-01-22 19:57:45 +00:00
Nicolas Perriault
8806e999d1
Added support for the wbr html tag to JSDOMParser.
2015-05-06 14:53:04 +02:00
Gijs Kruitbosch
0ff82de0f4
Implement createTextNode, do more relaxed escaping there, update testcase.
2015-04-13 14:32:49 +01:00
Nicolas Perriault
d725ebc953
Fixes #99 : JSDOMParser tag name case handling. r=@gijsk
2015-04-07 14:19:54 +02:00
Gijs Kruitbosch
62801faa0e
Fix JSDOMParser to do some HTML escaping and identify as JSDOMParser + add tests
2015-04-03 22:32:06 +01:00
Gijs Kruitbosch
8ddba60425
Fix script parsing to ignore closing tags in comments
2015-04-01 11:12:16 +01:00
Gijs Kruitbosch
bc7873d313
Fix innerHTML children assignments to help fix issue #76 .
2015-03-30 15:57:16 +02:00
Gijs Kruitbosch
14afc21b96
Fix code to ignore titles when we already have one.
2015-03-20 20:34:12 -07:00
Gijs Kruitbosch
eb81444946
Improve logic to rely on children instead of childNodes
2015-03-20 17:10:45 -07:00
Gijs Kruitbosch
f9e770ad3b
Write a bunch of tests for jsdomparser
2015-03-20 10:32:28 -07:00
Gijs Kruitbosch
9c4648193c
Fix JSDOMParser to have support for X-Element-Y (for X from first, last, next, previous; Y from Child, Element)
2015-03-19 17:04:42 -07:00
Gijs Kruitbosch
b5e905ef6b
Fix JSDOMParser to deal with scripts and all whitespace, not just spaces, and s/let/var/.
2015-03-19 09:27:23 -07:00
Gijs Kruitbosch
cd89e18647
Import the tree's JSDOMParser
2015-03-18 19:38:36 -07:00