Re: New design of tag nesting cleanup within the parser.

Jorge Arellano Cid <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Thu, Jun 23, 2016 at 05:57:05PM +0100, Nick Warne wrote:
> On Wed, 22 Jun 2016 19:30:51 -0400
> Jorge Arellano Cid <[email protected]> wrote:
>  
> >   Just as a quick and dirty patch so arstecnica, BBC and others may
> > be read before I come with something more structured, you may try:
> > 
> > diff -r ca794cd4c182 src/html.cc
> > --- a/src/html.cc       Tue Jun 21 18:04:00 2016 -0400
> > +++ b/src/html.cc       Wed Jun 22 19:30:15 2016 -0400
> > @@ -3735,6 +3735,8 @@ static void Html_stack_cleanup_at_open(D
> >              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
> >        }
> > 
> 
> Thanks, that works fine.

  Committed.

-- 
  Cheers
  Jorge.-
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.