From fd0c0bd277ccc608ae17cc21f53c24db35522dac Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Wed, 11 Mar 2026 10:20:49 +0000 Subject: [PATCH] Add failing URL tests --- .../data/html_sanitisation_test_cases.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/unit_tests/data/html_sanitisation_test_cases.md b/tests/unit_tests/data/html_sanitisation_test_cases.md index f1488883..b8073405 100644 --- a/tests/unit_tests/data/html_sanitisation_test_cases.md +++ b/tests/unit_tests/data/html_sanitisation_test_cases.md @@ -8,6 +8,8 @@ The HTML to test is in triple backtick code blocks. Anything not in code blocks is a comment. +This file is run by /tests/unit_tests/test_ui.py + ## Test scripts removed The script is removed but the contents remain. @@ -92,4 +94,26 @@ This is bold italic and on a new
line. ### Result ```html This is bold italic and on a new
line. +``` + +## Test http link with path preserved +Valid HTTP links should preserve their path. +### Input +```html +Docs +``` +### Result +```html +Docs +``` + +## Test http link with fragment preserved +Valid HTTP links should preserve their path and fragment. +### Input +```html +Docs Section +``` +### Result +```html +Docs Section ``` \ No newline at end of file