[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: kdelibs/khtml [POSSIBLY UNSAFE]
From:       Allan Sandfeld Jensen <allan () carewolf ! com>
Date:       2004-11-02 22:14:18
Message-ID: 200411030014.35608.allan () carewolf ! com
[Download RAW message or body]

On Tuesday 02 November 2004 20:18, David Faure wrote:
> On Tuesday 02 November 2004 20:01, Tobias Anton wrote:
> > On Dienstag, 2. November 2004 11:47, David Faure wrote:
> > > Either it should be only present when UA==NS4, for full NS4 emulation,
> > > or it should not be present.
> >
> > No user will ever figure out that changing the user agent will change
> > khtml's rendering. And, the other way around, it is very unlikely that a
> > user, when being shown a broken html page, will think "maybe if I change
> > the user agent, it might work afterwards". Most users don't even know
> > what a user agent is, so how are they supposed to know how a user agent
> > influences KHTML's internal javascript functionality?
>
> I don't see your point. Those users won't get document.layers, that's fine,
> it's what's intended. The rare advanced users who try everything to get a
> website working (and might even know about of html themselves) can play
> with UA emulation. I never said this is for joe user, one has to know about
> UA-changing indeed, nothing new there.

This _is_ for average joe. It is supposed to render sites where Konqueror is 
being misidentified. If it depends on UA being set to NS4 it will do any 
good. Many of these websites will already work if you set UA to MSIE (which 
is why they have never been updated). 

Layers are hidding for two reasons: 
1. Very few layer features are fully functional (for good reasons)
2. Many websites identify NS4 by using "if (document.layers)".

This means that if a website correctly asks if we support layers we decline, 
but if they just starts using them, it will mostly work. 

Personally I would like to hide document.all the same way by default. So that 
if we emulate MSIE it is not hidding, if we emulate mozilla it is not there 
at all, but when we are ourself, we hide it and pretend it is not there, but 
respond if it's used rather than tested.

`Allan
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic