summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/html.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc
index 7cf89758..08bb7d38 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3735,6 +3735,8 @@ static void Html_stack_cleanup_at_open(DilloHtml *html, int ni)
continue; // close
} else if (!(Tags[ni].Flags & 1) && !(Tags[ti].Flags & 4)) {
// Block element over a NON block container
+ if (ti == i_A && html->DocTypeVersion >= 5.0f)
+ break;
continue; // close
}