Add href parsing test

This commit is contained in:
Sascha Ißbrücker
2025-08-27 08:45:20 +02:00
parent 67d5b17450
commit 9cda5a54d3

View File

@@ -324,3 +324,14 @@ class ParserTestCase(TestCase, ImportTestMixin):
self.assertEqual(
bookmarks[0].notes, "Interesting notes about the <style> HTML element."
)
def test_unescape_href_attribute(self):
html = self.render_html(
tags_html="""
<DT><A HREF="https://example.com&center=123" ADD_DATE="1">Imported bookmark</A>
<DD>Imported bookmark description
"""
)
bookmarks = parse(html)
self.assertEqual(bookmarks[0].href, "https://example.com&center=123")