Re: New design of tag nesting cleanup within the parser.
Nick Warne <nick-ucsffw2X/[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
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. Nick -- Gosh that takes me back... or is it forward? That's the trouble with time travel, you never can tell." -- Doctor Who "Androids of Tara"