diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2016-06-24 11:22:32 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2016-06-24 11:22:32 -0400 |
commit | 365f4dbe539a17462d4fe681cccd4e6209fdfecd (patch) | |
tree | 3e906c72b58577c4153cb9b54ade84680a210c8b /src | |
parent | bcb7b7fb5467785fa08893c3b83059594953b81e (diff) |
Temporary fix for links in HTML5.
Avoid closing the <A> element until HTML5 rules are in place for the parser.
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 2 |
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 } |