From owner-svn-doc-all@FreeBSD.ORG Fri Jun 7 15:34:45 2013 Return-Path: Delivered-To: svn-doc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C31037CE; Fri, 7 Jun 2013 15:34:45 +0000 (UTC) (envelope-from trhodes@FreeBSD.org) Received: from homiemail-a34.g.dreamhost.com (caiajhbdcbef.dreamhost.com [208.97.132.145]) by mx1.freebsd.org (Postfix) with ESMTP id A93CA16C7; Fri, 7 Jun 2013 15:34:45 +0000 (UTC) Received: from homiemail-a34.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTP id 52A151005D; Fri, 7 Jun 2013 08:34:39 -0700 (PDT) Received: from lab (ip72-219-240-45.dc.dc.cox.net [72.219.240.45]) (Authenticated sender: trhodes@fbsdsecure.org) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTPA id 64B321006E; Fri, 7 Jun 2013 08:34:38 -0700 (PDT) Date: Fri, 7 Jun 2013 11:34:36 -0400 From: Tom Rhodes To: Hiroki Sato Subject: Re: svn commit: r41848 - head/en_US.ISO8859-1/htdocs/layout/js Message-Id: <20130607113436.4dc1cbc3.trhodes@FreeBSD.org> In-Reply-To: <20130607.092534.356568932887378565.hrs@allbsd.org> References: <20130606140542.GA1625@glenbarber.us> <20130606.232805.1823224325157138890.hrs@allbsd.org> <20130607.092534.356568932887378565.hrs@allbsd.org> X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: wblock@wonkity.com, svn-doc-head@FreeBSD.org, gjb@FreeBSD.org, svn-doc-all@FreeBSD.org, doc-committers@FreeBSD.org X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jun 2013 15:34:45 -0000 On Fri, 07 Jun 2013 09:25:34 +0900 (JST) Hiroki Sato wrote: > Eitan Adler wrote > in : > > ea> On 6 June 2013 16:28, Hiroki Sato wrote: > ea> > > ea> > null, "", and undefined are evaluated as false in Javascript. > ea> > > ea> Javascript has an odd concept of true and false: > ea> null, an empty string, +0, -0, and NaN, and false are the 'false' values. > ea> > ea> An object will return true. > > I see. I am not familiar with DNT implementation, but is there a www > browser to define navigator.doNotTrack as the value "false"? > > If so, I think something like the following is needed. > > var dnt = window.navigator.msDoNotTrack || window.navigator.doNotTrack; > var allow_track = (dnt && dnt == 'yes'|| dnt == 1); > > -- Hiroki > I was assuming based on the discussion that we need to perform more than a single check on this, but will this one actually work? It just looks odd to me. Note: Not a js guy either. -- Tom Rhodes