Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jun 2013 09:25:34 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        eadler@FreeBSD.org
Cc:        wblock@wonkity.com, gjb@FreeBSD.org, svn-doc-all@FreeBSD.org, doc-committers@FreeBSD.org, svn-doc-head@FreeBSD.org
Subject:   Re: svn commit: r41848 - head/en_US.ISO8859-1/htdocs/layout/js
Message-ID:  <20130607.092534.356568932887378565.hrs@allbsd.org>
In-Reply-To: <CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA@mail.gmail.com>
References:  <20130606140542.GA1625@glenbarber.us> <20130606.232805.1823224325157138890.hrs@allbsd.org> <CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Fri_Jun__7_09_25_34_2013_889)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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

----Security_Multipart(Fri_Jun__7_09_25_34_2013_889)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iEYEABECAAYFAlGxKH4ACgkQTyzT2CeTzy3S5ACfeEXbxu/CzurKRi/LyR/NRxUC
mrAAn1lcQvMB39W6dGKijBipcE1qR5Dk
=ekzz
-----END PGP SIGNATURE-----

----Security_Multipart(Fri_Jun__7_09_25_34_2013_889)----



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