lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] lss weirdness on <div class="contents">


From: Thomas Dickey
Subject: Re: [Lynx-dev] lss weirdness on <div class="contents">
Date: Thu, 31 Dec 2015 15:33:14 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Dec 31, 2015 at 08:10:57AM +0000, Thorsten Glaser wrote:
> Thomas Dickey dixit:
> 
> >That's a feature... of the color-style (which usually is an improvement
> >over the non-color-style).
> 
> Well anything with (dark) blue and black is hard to read,
> so it shouldn’t match anything random, only those where
> it is explicitly specified.
> 
> >That is, the combination of "div" and "contents" happens to match the
> >hashcode for "em.a".
> 
> Eh, what?

The color-style code (always has) computes a hash code for the tags
and matches on the hash code.  Since the hash table is only a few thousand
items, collisions will happen.  (The program doesn't followup with a
string-comparison after matching the hash -- I seem to recall some limitation
which would allow that).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]