Commit Graph

406 Commits (master)
 

Author SHA1 Message Date
Gijs Kruitbosch ac878bf7c1 Move to .eslintrc.js file 8 years ago
Evan Tseng 522f39617f Bug 1310074 - Tests for yahoo.com. r=Gijs 8 years ago
Evan Tseng 4fa0d1b207 Bug 1177619 - Score div nodes which have br nodes. r=Gijs 8 years ago
Evan Tseng 8bfd2a978d Bug 1310073 - Tests for wikipedia.org. r=Gijs 8 years ago
Taylor Hunt 71aa562387 Add microformats2 class names to heuristics (#303)
Microformats updated their old `hentry` to [a newer
`h-entry`](http://microformats.org/wiki/h-entry).

With the [number of IndieWeb sites breaking into the
ten-thousands](http://tantek.com/2016/190/b1/state-of-indieweb-summit),
this seems like a fair idea.
8 years ago
Gijs 1a12befa41 Fix code style, tighten up eslint rules (#301) 8 years ago
Ivan Persidsky fd11f92adb Use a dedicated method and backward iteration for removing nodes (#300)
This improves compat with "real" DOMs that provide a live NodeList as the return value of getElementsByTagName.
8 years ago
Gijs Kruitbosch 140d4c4aca Only compute textContent once. 8 years ago
usergit 327bfcb93f exposed textContent to be returned
this returns the text content only, this is useful as it allows the content to be easily accessible
8 years ago
Gijs 69b81f5d70 Fix #287: convert getElementsByTagName result to an array (#288) 8 years ago
Margaret Leibovic c3c91a739b Merge pull request #278 from gijsk/simplyfound-hidden-modal-dialog
Address issue #277 by marking 'modal' unlikely+negative
8 years ago
Gijs Kruitbosch 46b08a5ea5 Address issue #277 by marking 'modal' unlikely+negative 8 years ago
Gijs fcc645019f Merge pull request #275 from pdehaan/issue-273-no-inner-declarations
Add 'no-inner-declarations' rule to .eslintrc
8 years ago
Peter deHaan 1842b5ee12 Add 'no-inner-declarations' rule to .eslintrc 8 years ago
Gijs 5e6d85cd3d Merge pull request #274 from pdehaan/issue-273
Convert nested function declaration to function expression to avoid strict warning
8 years ago
Peter deHaan b380917b4b Convert nested function declaration to function expression 8 years ago
Gijs c2394da2d9 Fix #272 by not using 'location' as a variable
... because it writes to window.location when used in a browser context, which is a bad idea. Using 'loc' instead fixes this.
8 years ago
Gijs edfe703a41 Merge pull request #270 from gijsk/redeclared-vars
Fix eslint issues identified in m-c and enable automatic linting on travis
8 years ago
Gijs Kruitbosch 7579ac4ea8 Enable linting through travis 8 years ago
Gijs Kruitbosch a4d1e9ca12 Fix oversight in comment removal code exposed by better/newer jsdom implementation 8 years ago
Gijs Kruitbosch e830ac9dd8 Fix eslint issues identified in m-c 8 years ago
Gijs e2974ca825 Merge pull request #268 from gijsk/dont-mangle-hash-links
Fix issue #267 by ignoring hash URIs when making URIs absolute
8 years ago
Gijs Kruitbosch dffa760c04 Fix issue #267 by ignoring hash URIs when making URIs absolute 8 years ago
Gijs 7be3ccb57e Merge pull request #262 from gijsk/bbc-script-testcase
Reuse test from pull request #239 which passes without modifications …
8 years ago
Wes Johnston f87a12400b Reuse test from pull request #239 which passes without modifications (modified by @gijsk to pass in the current XHTML test environment) 8 years ago
Gijs b1d360168b Merge pull request #252 from gijsk/fix-delayed-closing-tags
Fix issue #251 by making JSDOMParser deal with non-self-closed-things
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 d360226f8c Merge pull request #260 from gijsk/hid-class
Fix bug 1230050 by checking for the 'hid' class specifically, r?MattN
8 years ago
Gijs Kruitbosch a9597efc17 Fix bug 1230050 by checking for the 'hid' class specifically, r?MattN 8 years ago
Gijs 30d6db3c11 Merge pull request #256 from brendanlong/spdx-license
Fix package.json's license to be in SPDX format ("Apache-2.0").
9 years ago
Brendan Long c59a054f78 Fix package.json's license to be in SPDX format ("Apache-2.0").
See: https://docs.npmjs.com/files/package.json#license
9 years ago
Gijs e5a6d628f4 Merge pull request #254 from hsemarap/readme-change-to-fix-scrambling-of-dom
Readme change to advise about DOM modification effects of parse(). Fixes #250
9 years ago
Parameswaran D a812b329ea moved the sample code under Optional subsection 9 years ago
Parameswaran D d1e4ef0dcd Fixes #250 : scrambling of DOM on parse 9 years ago
Parameswaran D 0b5dd0a6fb Fixes #250 : scrambling of DOM on parse 9 years ago
Gijs 8510106638 Merge pull request #211 from mozilla/add-support-for-wbr-tag
Added support for the wbr html tag to JSDOMParser.
9 years ago
Nicolas Perriault 8806e999d1 Added support for the wbr html tag to JSDOMParser. 9 years ago
Gijs a801846a45 Merge pull request #204 from mozilla/tweak-great-grandparent-scoring
Updated great grandparent node scoring.
9 years ago
Gijs 5bf56177be Merge pull request #207 from mozilla/better-dm
Improved embedded video elements detection.
9 years ago
Nicolas Perriault ae0833522c Improved embedded video elements detection. 9 years ago
Nicolas Perriault 46304bb5fe Updated great grandparent node scoring. 9 years ago
Nicolas Perriault 66071e573d Merge pull request #194 from mozilla/score-intermediary-headers
Fixes #180 - Score intermediary headings.
9 years ago
Nicolas Perriault 88ef3893b5 Fixes #180 - Score intermediary headings. 9 years ago
Nicolas Perriault 6344b3f736 Merge pull request #196 from mozilla/strip-related-contents
Refs #195 - Exclude nodes likely to be related content.
9 years ago
Nicolas Perriault dc1b2c9fa0 Refs #195 - Exclude nodes likely to be related content. 9 years ago
Margaret Leibovic affa0edbdd Merge pull request #197 from mozilla/support-dailymotion-videos
Ref #195 - Add support for dailymotion videos.
9 years ago
Nicolas Perriault cc18cb5787 Ref #195 - Add support for dailymotion videos. 9 years ago
Nicolas Perriault 4721837e27 Merge pull request #193 from mozilla/score-great-grandparent-nodes
Fixes #113 - Score great grandparent nodes.
9 years ago
Nicolas Perriault 9dbc009376 Fixes #113 - Recursive node ancestor scoring. 9 years ago
Gijs f71ec9ceae Merge pull request #191 from mozilla/preserve-list-items
Fixes #183 - Preserve list items.
9 years ago