Fotios said:
I think I have answered the issue of standards compliance
Which standard would that have been then?
ECMA 262? You proposed abandoning it.
W3C DOM? No userAgent strings in that.
RFC 2616? Not relevant to client-side scripting and still makes no
requirement for a user agent header string to uniquely identify the user
agent software.
Let me now take this opportunity to summarize my contribution
to this thread.
In any case, the point is that building something like Fudgilla:
* Now is shown to have possible motivation (and I can
quote Richard swearing this could not be)
Your proposed motivation for the creation of Fudgzilla (discouraging the
use of the Microsoft DOM in favour of W3C DOM standards) does not result
in a browser on which feature/object detecting is not completely
successful. In order to negatively impact on feature detecting as a
technique you have had to abandon the ECAM script specification. Which,
in terms of promoting W3C browser scripting standards, is throwing the
baby away with the bath water.
You also have not effected anywhere near all feature/object detecting
scripts but you have still killed off probably the majority of browser
detection based scripts.
So your hypothetical developer of Fudgzilla has taken the irrational
course of action of attempting to promote the use of the W3C DOM
standard in scripting by abandoning the standard for the language in
which browsers are scripted and still has not made a browser in which
feature/object detecting is less successful than browser detecting.
* Is obviously implementable
Did anyone ever say that it could not be implemented. But the final
version you described does not result from your proposed motivation for
its author (unless he is insane) and the earlier versions which could
have been authored with the motivation described were not a problem for
feature detecting scripts.
* Obviously makes object/property detection based scripts
problematic
Only by abandoning the language specification and the result is still
more problematic for browser detection based scripts. So favouring
feature/browser detection as the more robust, reliable and rational
alternative is still indicated.
Besides this I have also demonstrated that browser
discrimination:
* is required in many cases that are not necessarily
scripting related
No, so far you have only mentioned rendering glitches and that belief of
yours seems to be down to a combination of an ignorance of CSS and an
unrealistic attitude towards Internet authoring in general.
* is recognised as a possible need by official standards
(like the HTTP RFC)
But not by any standards that are applicable to client-side scripting.
* is supported by such standards by things like the ua string
(and probably by more in the future)
But not by any standards that are applicable to client-side scripting.
* is being widely used in the industry (granted, with
object/property detection on its side but still for browser
discrimination purposes)
<sarcasm>
And we would hate to see the quality of Internet scripting improve.
I also understand (and have been widely using it myself for
years) the benefits of object/property testing in scripts.
Use? Possibly. Understand? Not judging by the logic in the code you
posted to:-
<URL:
http://groups.google.com/groups?threadm=3f6f9093$0$211$bed64819@
news.gradwell.net >
My position is that this is not a panacea and that there
are still many real cases where browser discrimination
may be needed or preferred.
In a world where browsers cannot be discriminated, identifying a need to
do so is somewhat futile.
This is because:
* Browser discrimination is a real need as long as various
browsers do even one thing differently. This
thing does not necessarily have to do with how scripts
execute. It may have to do with how things render, what is
supported and what not (besides scripting) and even various bugs.
So it is a good thing that you have not yet identified a *need* to do
so, just insufficient knowledge to identify and tackle the real problem.
* It is better to deny services to a particular browser
(and suggest a free alternative instead) than have your
site misrender embarrassingly on various untested browsers.
Are you in a position to suggest a free alternative for any embedded or
PDA browsers?
I state again that the misrendering does not need to be
related to javascript issues.
Rendering is presentational so that is still CSS and still should be
tackled with CSS not JavaScript. You can repeat this rendering point as
often as you like but when (or if) you can get your head round the
concepts related to the application of CSS you will find that your
problem evaporates (and if you have any conscience you will find
yourself embarrassed that you ever even proposed using JavaScript to
address CSS problems).
This is my final post on this thread.
I will believe that when I see it.
Richard.