diff --git a/src/moin/converters/_tests/test_html_in.py b/src/moin/converters/_tests/test_html_in.py
index 65586e7fa..11c544f69 100644
--- a/src/moin/converters/_tests/test_html_in.py
+++ b/src/moin/converters/_tests/test_html_in.py
@@ -241,11 +241,12 @@ def test_span_html_element(self, input, xpath):
#
'/page/body/div/p/a[@xlink:href="http://www.base-url.com/myPage.html"]',
),
- # verify invalid or forbidden uri schemes are removed
+ # only approved URI schemes are used in a "href"
+ # (others are handled as part of a local item name):
(
"""
Test
""",
- # javascript:alert('hi')
- """/page/body/p[text()="javascript:alert('hi')"]""",
+ # Text
+ """/page/body/p/a[text()="Test"][@xlink:href="wiki.local:javascript:alert%28'hi'%29"]""",
),
]
diff --git a/src/moin/converters/_tests/test_rst_in.py b/src/moin/converters/_tests/test_rst_in.py
index 0c1c4ec0c..5531852ce 100644
--- a/src/moin/converters/_tests/test_rst_in.py
+++ b/src/moin/converters/_tests/test_rst_in.py
@@ -54,10 +54,6 @@ def setup_class(self):
".