Date: Thu, 6 Jun 2013 22:35:13 +0200 From: Eitan Adler <eadler@freebsd.org> To: Hiroki Sato <hrs@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: <CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA@mail.gmail.com> In-Reply-To: <20130606.232805.1823224325157138890.hrs@allbsd.org> References: <201306061149.r56BnrNn023865@svn.freebsd.org> <alpine.BSF.2.00.1306060748550.64531@wonkity.com> <20130606140542.GA1625@glenbarber.us> <20130606.232805.1823224325157138890.hrs@allbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6 June 2013 16:28, Hiroki Sato <hrs@freebsd.org> wrote: > Glen Barber <gjb@FreeBSD.org> wrote > in <20130606140542.GA1625@glenbarber.us>: > > gj> On Thu, Jun 06, 2013 at 07:59:17AM -0600, Warren Block wrote: > gj> > On Thu, 6 Jun 2013, Glen Barber wrote: > gj> > > gj> > >Author: gjb > gj> > >Date: Thu Jun 6 11:49:53 2013 > gj> > >New Revision: 41848 > gj> > >URL: http://svnweb.freebsd.org/changeset/doc/41848 > gj> > > > gj> > >Log: > gj> > > Check for boolean 'true' case of w.n.dNT. FYI, this was originally tested on Internet Explorer which had set the value to "yes" on whichever version it was at the time (I don't remember the details atm). I have no objection to this change though. IE does not follow the do-not-track specification so I am not surprised that it differs in other ways as well. > gj> > gj> which I believe will always evaluate true. > > null, "", and undefined are evaluated as false in Javascript. > Javascript has an odd concept of true and false: null, an empty string, +0, -0, and NaN, and false are the 'false' values. An object will return true. -- Eitan Adler Source, Ports, Doc committer Bugmeister, Ports Security teams
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxg=tnyCyLP50RpO8j20jbnGO_Mycb7aq5P3pRVz9NtvokA>