From 365f4dbe539a17462d4fe681cccd4e6209fdfecd Mon Sep 17 00:00:00 2001 From: Jorge Arellano Cid Date: Fri, 24 Jun 2016 11:22:32 -0400 Subject: Temporary fix for links in HTML5. Avoid closing the element until HTML5 rules are in place for the parser. --- src/html.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 } -- cgit v1.2.3