- 17 Jan, 2022 4 commits
-
-
Thomas Mortagne authored
-
Jerome Prinet authored
-
Thomas Mortagne authored
-
Michael Hamann authored
* Fix test to consider no-longer deprecated elements.
-
- 14 Jan, 2022 3 commits
-
-
Michael Hamann authored
* Cleanup some comments and introduce a helper to check if the configuration is HTML5. * Allow b, i, u and s tags in HTML 5 as they are not obsolete in HTML 5 (and i is in fact frequently used for icons). * Add XWikiHTML5TagProvider to fix svg and style tag handling. * Fix class fan-out complexity in DefaultHTMLCleaner by not using the CleanerTransformations class but only our subclass.
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
- 13 Jan, 2022 6 commits
-
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
Michael Hamann authored
* Fix SonarLint blocker by copying the parent tests instead of calling them.
-
Simon Urli authored
* also catch IllegalArgumentException since Tomcat might throw them when trying to resolve a bad path
-
Thomas Mortagne authored
-
- 12 Jan, 2022 2 commits
-
-
Simon Urli authored
* Ensure to normalize URLs when calling ServletEnvironment#getResource
-
Michael Hamann authored
* Fix case of HTML5 doctype, see https://github.com/whatwg/html/blob/main/FAQ.md#what-is-the-doctype-for-modern-html-documents
-
- 10 Jan, 2022 5 commits
-
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
- 07 Jan, 2022 2 commits
-
-
Michael Hamann authored
* Document another exception in BodyFilter * Improve robustness in HTML version parameter parsing
-
Michael Hamann authored
* Code style Co-authored-by:
Marius Dumitru Florea <marius@xwiki.com>
-
- 06 Jan, 2022 1 commit
-
-
Thomas Mortagne authored
-
- 04 Jan, 2022 1 commit
-
-
Michael Hamann authored
* Add a new HTML_VERSION parameter to HTMLCleanerConfiguration. * Pass the HTML version in DefaultHTMLCleaner to HTMLCleaner and set the document type accordingly. * Add a tag transformation to transform `<tt>` to `<span class="monospace">`. * Add a tag transformation to replace the font filter in HTML5 as the cleaner removes the font tags too early otherwise. * Extend BodyFilter to allow more HTML5 tags directly in the body. * Add constants for many HTML5 tags in HTMLConstants. * Add a new unit test HTML5HTMLCleanerTest to test the behavior of HTMLCleaner with the HTML5 configuration. * Modify DefaultHTMLCleanerTest to allow re-using most test methods in HTML5HTMLCleanerTest.
-
- 03 Jan, 2022 3 commits
-
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
- 31 Dec, 2021 2 commits
-
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
- 29 Dec, 2021 1 commit
-
-
Thomas Mortagne authored
-
- 28 Dec, 2021 2 commits
-
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
- 27 Dec, 2021 3 commits
-
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
Thomas Mortagne authored
-
- 23 Dec, 2021 5 commits
-
-
Thomas Mortagne authored
-
Simon Urli authored
XCOMMONS-2137: Possible IllegalArgumentException when performing a merge * Style improvments
-
Thomas Mortagne authored
-
Simon Urli authored
XCOMMONS-2137: Possible IllegalArgumentException when performing a merge * Fix sonar quality gate
-
Simon Urli authored
XCOMMONS-2068: Possible OutOfBoundsException when performing diff XCOMMONS-2137: Possible IllegalArgumentException when performing a merge This changes provides new integration tests that helped investigating the problems in the diff algorithm. Basically the main issue was in the creation of conflicts information: all subsequent errors are most likely coming from there. The changes here are mostly about computing a proper index for extract conflict information, and actually enforcing proper usage of sublist API to avoid problems: this might displays some loggers if other problems occurs in the algorithm, but this would not break the caller.
-