[thelist] the regular expression for detecting gecko browser later then Fx 1.0?

Felix Miata mrmazda at ij.net
Fri Apr 28 07:43:17 CDT 2006

On 06/04/28 04:56 (GMT-0400) Zhang Weiwu apparently typed:

> The application I am working on detects the current browser and, if certain
> browser is not tested, give a warning message.

> Currently tested browser is Firefox 1.0+ and IE 5.5+. But later I get
> complaint because some users are using K-meleon and works fine, and they get
> the warning message. Thus I realize I should not detect browser USER_AGENT
> against Firefox, rather intead, I should detecte the gecko layout engin, if
> the layout engin is later then the one used on Firefox 1.0, the system
> should work without warning.

> So is there an universal way to detect if the gecko browser is supported? I
> could for sure add some test like ereg('Gecko\/Debian-1') for debian, but
> what if someone come up ask their firefox on yellowdog Linux, firefox on xxx
> OS gives fault warning message?

> Any suggestions?

> Reference: gecko user-agent string
> http://www.mozilla.org/build/revised-user-agent-strings.html

The links in https://bugzilla.mozilla.org/show_bug.cgi?id=334967 are
probably better.
"Have nothing to do with the fruitless deeds of darkness, but
rather expose them."			Ephesians 5:11 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://mrmazda.no-ip.com/auth/auth

More information about the thelist mailing list