Jan Tojnar
5afefcff34
tests: Remove pointless debug assignment
...
It is unused since 8ab7d76cd5 .
(cherry picked from commit 541fab34a0 )
1 year ago
Jan Tojnar
eb6ca1a99b
tests: Use ::class for DOMDocument class name
...
Also capitalize it properly.
(cherry picked from commit 90869d877e )
1 year ago
Jan Tojnar
2ae758555a
Remove extra set_error_handler callback argument
...
It is unused and would cause an error on PHP ≥ 8.0:
https://www.php.net/manual/en/function.set-error-handler.php#refsect1-function.set-error-handler-parameters
Not sure if the handler is even necessary – it was introduced in 175196d6c2 but I did not manage to reproduce the original error (Entity 'nbsp' not defined). It was probably fixed by f2a43b476c .
(based on commit da755013aa )
1 year ago
Jan Tojnar
f5e25f3c9c
Avoid E_STRICT constant
...
It will be deprecated in PHP 8.4 and it is meaningless nowadays anyway:
https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant
The use of the constant was introduced in 175196d6c2 .
(cherry picked from commit c7b10dcc45 )
1 year ago
Jan Tojnar
a209429e8b
tests: Fix “THE ERROR HANDLER HAS CHANGED!”
...
(cherry picked from commit 23f824a1ce )
1 year ago
peter279k
97c02e8ad4
Using assertSame to make assertion equal strict
4 years ago
Jeremy Benoist
d0af21814a
Ditch `assertContains` & `assertNotContains`
4 years ago
Jeremy Benoist
ea1368fac0
Body can be wiped without tidy
...
Re-create it in that case.
Also run CS-Fixer.
5 years ago
Jeremy Benoist
bb65caf864
Fix “A non well formed numeric value encountered”
7 years ago
Jeremy Benoist
74d9cc605a
Enable PHPStan
7 years ago
Jeremy Benoist
2dce2879bf
Update fixer rules
...
Following graby, wallabag, etc.
7 years ago
Jeremy Benoist
9ab6d0d9e8
Updating to 7.2
7 years ago
Kevin Decherf
3a7350a8a7
tests: fix possible typo in testPostFilters() leading to failure
...
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
9 years ago
Kevin Decherf
4c68cc9f09
Keep elements with 'footnote' as possible candidates
...
Should fix https://github.com/wallabag/wallabag/issues/3100
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
9 years ago
Jeremy Benoist
05089bbd03
Add missing HTML5 class
9 years ago
Jeremy Benoist
85fb92a042
Fix tests
9 years ago
Jeremy Benoist
ff754b80bd
Avoid childnode becoming null to generate a warning
9 years ago
Jeremy Benoist
2ef400bf73
Enable php-cs-fixer
10 years ago
Jeremy Benoist
00f622e9b7
Revert BC changes
...
- avoid method signature update
- revert moving logic out of the constructor
10 years ago
Jeremy Benoist
8ab7d76cd5
Use Monolog instead of custom solution
...
Remove that ugly `openlog` & `syslog`
10 years ago
Jeremy Benoist
149a333b40
Remove addPreFilter
...
Pre filters are used in the __construct so adding more pre filters once the object is instantiated is useless.
10 years ago
Jeremy Benoist
209c404d7b
Fix instanceof DOMElement
...
We previously checked `instanceof DOMElement` which was wrong since we
are in the namespace class, the class `Readability\DOMElement` does not
exists.
10 years ago
Jeremy Benoist
dc590542f0
Avoid adding id that might already exists
...
We append a new node when it isn't a `div` or `p` (like when it's an `article`) with the same id which generate a DOM error "DOMElement::setAttribute(): ID blabla already defined".
10 years ago
Jeremy Benoist
7c30d76b6e
Ensure tests are running without Tidy
11 years ago
Jeremy Benoist
b77876b30a
Do not remove nofollow links
...
Most the time, they can be usefull.
At least, it'll be a link to something unrelated. But we won't lose a link inside the content.
Also, adding some extra space.
11 years ago
Jeremy Benoist
175196d6c2
Avoid error with
...
Fix #5
11 years ago
Jeremy Benoist
908a49824f
Add test on title
11 years ago
Jeremy Benoist
1963319a55
Improve Travis & add Scrutinizer
...
+ CS
+ Update README
11 years ago
Jeremy
b81cf8d1c5
Adjust test & php compatible version
11 years ago
Jeremy
881e441bdf
Initial commit
11 years ago