<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=Gecko_User_Agent_parsing</id>
	<title>Gecko User Agent parsing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mozilla.org/index.php?action=history&amp;feed=atom&amp;title=Gecko_User_Agent_parsing"/>
	<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Gecko_User_Agent_parsing&amp;action=history"/>
	<updated>2026-10-06T15:01:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.mozilla.org/index.php?title=Gecko_User_Agent_parsing&amp;diff=252406&amp;oldid=prev</id>
		<title>Dwitte: Created page with &quot;= Authors =  *&#039;&#039;&#039;Dan Witte&#039;&#039;&#039; &lt;dwitte@mozilla.com&gt;  = Overview =  We should have an expansive MDC doc on how to parse the UA string, and when to parse vs. when to feature-sniff. ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.mozilla.org/index.php?title=Gecko_User_Agent_parsing&amp;diff=252406&amp;oldid=prev"/>
		<updated>2010-09-10T18:31:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Authors =  *&amp;#039;&amp;#039;&amp;#039;Dan Witte&amp;#039;&amp;#039;&amp;#039; &amp;lt;dwitte@mozilla.com&amp;gt;  = Overview =  We should have an expansive MDC doc on how to parse the UA string, and when to parse vs. when to feature-sniff. ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Authors =&lt;br /&gt;
&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Dan Witte&amp;#039;&amp;#039;&amp;#039; &amp;lt;dwitte@mozilla.com&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Overview =&lt;br /&gt;
&lt;br /&gt;
We should have an expansive MDC doc on how to parse the UA string, and when to parse vs. when to feature-sniff. We currently have https://developer.mozilla.org/en/Gecko_user_agent_string_reference, which provides (some!) detail on what the various components of the UA string in Gecko 2 are.&lt;br /&gt;
&lt;br /&gt;
We currently have the following obsolete or inadequate docs sprinkled around:&lt;br /&gt;
&lt;br /&gt;
https://developer.mozilla.org/en/Browser_Detection_and_Cross_Browser_Support&lt;br /&gt;
https://developer.mozilla.org/en/Gecko_User_Agent_Strings&lt;br /&gt;
https://developer.mozilla.org/User_Agent_Strings_Reference&lt;br /&gt;
&lt;br /&gt;
These should all be superseded by a single document. It needs:&lt;br /&gt;
&lt;br /&gt;
1) A thorough description of the most recent (Firefox 4) UA string, and all of its fields. This is partially done in https://developer.mozilla.org/en/Gecko_user_agent_string_reference, and changes were explained in http://hacks.mozilla.org/2010/09/final-user-agent-string-for-firefox-4/.&lt;br /&gt;
&lt;br /&gt;
2) A historical document detailing what the UA string looks like for older versions of Gecko, Firefox, Navigator, etc. This is also partially done via the &amp;#039;ua.txt&amp;#039; file (linked from the above doc) containing examples of old UAs and other Gecko-based product UAs.&lt;br /&gt;
&lt;br /&gt;
3) A set of parsing algorithms (i.e. sample JS) for properly sniffing and extracting various fields.&lt;br /&gt;
&lt;br /&gt;
4) A set of recommendations on when to use those algorithms vs. when to feature-sniff. geckoisgecko.org has a link to a doc on this: http://articles.sitepoint.com/article/dhtml-utopia-modern-web-design/4&lt;br /&gt;
&lt;br /&gt;
We should also update geckoisgecko.org with a link to this new documentation -- the stuff on there is sparse and obsolete.&lt;/div&gt;</summary>
		<author><name>Dwitte</name></author>
	</entry>
</feed>