- From: Matt Alexander <matt@webhue.com>
- Date: Thu, 6 Aug 2015 09:13:09 -0400
- To: Andrew Chang <Andrew.Chang@equifax.com>
- Cc: "public-custexpdata@w3.org" <public-custexpdata@w3.org>
- Message-ID: <CAEZuf9bdsL-rjjTpw7=aPrDBBaiS3JZ84J9hXP4kwy87Z_gVBQ@mail.gmail.com>
Andrew, A data layer is really just a JavaScript object. As such, you only need to avoid using property names that are reserved by the JavaScript language. This is a good list of reserved terms: http://www.w3schools.com/js/js_reserved.asp. In JavaScript, variables can accept any content type. So, even if a PDF somewhere says that a property should be a string, that PDF can't stop you from putting an integer into that variable. The data layer spec exists to help you think through the data you need to collect and to organize it in the page or app code. If an integer is more appropriate in your situation, then record an integer. Just try to be clear and consistent with your data layer implementation. Hope this helps, Matt Alexander *Principal Consultant* | WebHue | 407-247-8927 | matt@webhue.com On Tue, Aug 4, 2015 at 6:43 PM, Andrew Chang <Andrew.Chang@equifax.com> wrote: > Hi all: > > > > When implementing the data layout, I found even I used a reserved word > without following the spec on the type, I still can get the value. For > example, I utilized “language” under ‘pageInfo’ under ‘page’, which is > supposedly a String from the spec. But I used it as an Integer on purpose, > which is without adding double quote, like “language: 23456”. I still can > get “23456”. So why on the spec it mentioned when using the reserved word > needs to follow the spec? > > > > Thanks. > > > > Andrew > > > This message contains proprietary information from Equifax which may be > confidential. If you are not an intended recipient, please refrain from any > disclosure, copying, distribution or use of this information and note that > such actions are prohibited. If you have received this transmission in > error, please notify by e-mail postmaster@equifax.com. Equifax® is a > registered trademark of Equifax Inc. All rights reserved. >
Received on Thursday, 6 August 2015 16:29:19 UTC