Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jun 2013 11:34:36 -0400
From:      Tom Rhodes <trhodes@FreeBSD.org>
To:        Hiroki Sato <hrs@FreeBSD.org>
Cc:        wblock@wonkity.com, eadler@FreeBSD.org, svn-doc-head@FreeBSD.org, gjb@FreeBSD.org, svn-doc-all@FreeBSD.org, doc-committers@FreeBSD.org
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> <CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA@mail.gmail.com> <20130607.092534.356568932887378565.hrs@allbsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 07 Jun 2013 09:25:34 +0900 (JST)
Hiroki Sato <hrs@FreeBSD.org> wrote:

> Eitan Adler <eadler@freebsd.org> wrote
>   in <CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA@mail.gmail.com>:
> 
> ea> On 6 June 2013 16:28, Hiroki Sato <hrs@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130607113436.4dc1cbc3.trhodes>