Re: [patch] HTML parser bugfix

Jorge Arellano Cid <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Sun, Jun 03, 2012 at 09:00:55PM +0100, Jeremy Henty wrote:
> 
> 123 wrote:
> 
> > Attached  patch  removes logic  that  tries  to detect  unterminated
> > quoted attributes and fixes this bug.
> 
> I would be wary of applying this patch without further thought.  I run
> Dillo with a  very similar patch and it breaks  *many* more pages than
> it fixes.   It is unfortunately  necessary to detect and  recover from
> quoting  errors in  attributes.  For  instance, the  web is  *full* of
> pages with tags containing this:
> 
>     foo="bar""
> 
> If you don't detect and ignore  that extra double quote you will break
> many pages that every other browser renders perfectly well.
> 
> It's not even that uncommon to see monstrosities like this:
> 
>     foo=""bar"""
> 
> It  is  also  common  to  see short  attributes  (often  CSS  lengths)
> delimited with a mixture of single and double quotes, eg:
> 
>     size="12pt'
> 
> For these  reasons, sadly, it is  IMHO not realistic to  just drop the
> misquote-detection logic.

  Ditto.

  (FWIW, maybe  this  is  the fourth time this patch is received;
In  the  past  the  submitter has always desisted after some more
testing).

-- 
  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.