From a9e3b926f7944f2d5fc583eab2af53b8067d9868 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Tue, 17 Jan 2023 18:20:13 +0200 Subject: [PATCH] fix: rfc2html creates a "a" tag without href for references, handle that (#4975) --- ietf/utils/text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/utils/text.py b/ietf/utils/text.py index 4bca87616..d5463c9f4 100644 --- a/ietf/utils/text.py +++ b/ietf/utils/text.py @@ -51,7 +51,8 @@ validate_url = URLValidator() def check_url_validity(attrs, new=False): if (None, "href") not in attrs: - return None + # rfc2html creates a tags without href + return attrs url = attrs[(None, "href")] try: if url.startswith("http"):