0% found this document useful (0 votes)
21 views

CSS Styles

The .NET framework does not properly recognize the capabilities of Mozilla-based browsers like Netscape and Firefox by default. This is because the BrowserCaps section of the machine.config file declares Mozilla browser capabilities poorly. To fix this, the default BrowserCaps entry should be replaced with an updated entry that accurately detects modern browsers like Gecko-based browsers, AppleWebKit browsers, Konqueror, and Opera.

Uploaded by

api-3841500
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

CSS Styles

The .NET framework does not properly recognize the capabilities of Mozilla-based browsers like Netscape and Firefox by default. This is because the BrowserCaps section of the machine.config file declares Mozilla browser capabilities poorly. To fix this, the default BrowserCaps entry should be replaced with an updated entry that accurately detects modern browsers like Gecko-based browsers, AppleWebKit browsers, Konqueror, and Opera.

Uploaded by

api-3841500
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

CSS Styles:

24.1 Why does my page show up poorly in Mozilla based browsers like
Netscape and Firefox?

The .Net framework recognizes the capabilities of the latest version of the above browsers poorly. This is

because, by default, the BrowserCaps section of the machine.config file (usually found under a folder like

"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG") declares the capabilities of the Mozilla based

browser poorly. So, you will have to replace the default entry in your install with this one: Mozilla

BrowserCaps .

In case the above link didn't work, this is the content from the above link, captured as of (4/10/2005):

<browserCaps>

<!--
Name: BrowserCaps update for modern browsers,
http://slingfive.com/pages/code/browserCaps/
Author: Rob Eberhardt, http://slingfive.com/
History:
2004-11-19 improved detection of Safari, Konqueror & Mozilla variants, added Opera detection
2003-12-21 updated TagWriter info
2003-12-03 first published
-->

<!-- GECKO Based Browsers (Netscape 6+, Mozilla/Firefox, ...) //-->


<case match="^Mozilla/5\.0 \([^)]*\) (Gecko/[-\d]+)(?'VendorProductToken'
(?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))?">
browser=Gecko
<filter>
<case match="(Gecko/[-\d]+)(?'VendorProductToken'
(?'type'[^/\d]*)([\d]*)/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)))">
type=${type}
</case>
<case>
type=Mozilla
</case>
</filter>
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="rv:(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))">
version=${version}
majorversion=0${major}
minorversion=0${minor}
<case match="^b" with="${letters}">
beta=true
</case>
</case>
</case>

<!-- AppleWebKit Based Browsers (Safari...) //-->


<case match="AppleWebKit/(?'version'(?'major'\d?)(?'minor'\d{2})(?'letters'\w*)?)">
browser=AppleWebKit
version=${version}
majorversion=0${major}
minorversion=0.${minor}
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="AppleWebKit/(?'version'(?'major'\d)(?'minor'\d+)(?'letters'\w*))(.* )?
(?'type'[^/\d]*)/.*( |$)">
type=${type}
</case>
</case>

<!-- Konqueror //-->


<case match=".+[K|
k]onqueror/(?'version'(?'major'\d+)(?'minor'(\.[\d])*)(?'letters'[^;]*));\s+(?'platform'[^;\)]*)(;|\))">
browser=Konqueror
version=${version}
majorversion=0${major}
minorversion=0${minor}
platform=${platform}
type=Konqueror
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
</case>

<!-- Opera //-->


<case match="Opera[ /](?'version'(?'major'\d+)(?'minor'\.(?'minorint'\d+))(?'letters'\w*))">
<filter match="[7-9]" with="${major}">
tagwriter=System.Web.UI.HtmlTextWriter
</filter>
<filter>
<case match="7" with="${major}">
<filter>
<case match="[5-9]" with="${minorint}">
ecmascriptversion=1.5
</case>
<case>
ecmascriptversion=1.4
</case>
</filter>
</case>
<case match="[8-9]" with="${major}">
ecmascriptversion=1.5
</case>
</filter>
</case>

</browserCaps>

You might also like