One of the support questions I got this week was around my favourite browser (and the latest Netscape one) and ASP.NET.
ASP.NET 1.1 doesn't recognize Firefox by default. It therefore doesn't set the Browser[“css2“] property appropriately, meaning that sometimes stylesheet info isn't sent down. So, after a bit of struggling with Regex expressions and the Browser Agent, I came up with these two additions to the browserCaps section. Anyone want to tighten up the features and/or expressions?
UPDATED 5/24 with the correct Firefox Regex.
Firefox (0.8)Agent string:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 <case match^Mozilla/5\.0\s*([^)]*\))\s*(Gecko\/\d+)\s*Firefox\/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*">browser=Netscapeversion=${version}majorversion=${major}minorversion=${minor}frames=truetables=truecookies=truejavascript=truejavaapplets=trueecmascriptversion=1.5w3cdomversion=1.0css1=truecss2=truexml=true<filter match="^b" with="${letters}"> beta=true</filter></case>
Netscape 7.1Agent string:
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
<case match="^Mozilla/5\.0\s*([^)]*\))\s*(Gecko\/\d+)\s*Netscape/(?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*)).*">browser=Netscapeversion=${version}majorversion=${major}minorversion=${minor}frames=truetables=truecookies=truejavascript=truejavaapplets=trueecmascriptversion=1.5w3cdomversion=1.0css1=truecss2=truexml=true<filter match="^b" with="${letters}"> beta=true</filter></case>
TTFN - Kent