Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Reading 2012.1 doc--how to get an html5 page

Received: by 10.100.227.5 with SMTP id z5mr15435580ang.4.1329342586018;
        Wed, 15 Feb 2012 13:49:46 -0800 (PST)
X-BeenThere: intersystems-zen@googlegroups.com
Received: by 10.101.204.32 with SMTP id g32ls1218041anq.7.gmail; Wed, 15 Feb
 2012 13:49:43 -0800 (PST)
Received: by 10.101.153.5 with SMTP id f5mr15553883ano.27.1329342583799;
        Wed, 15 Feb 2012 13:49:43 -0800 (PST)
Received: by 10.101.153.5 with SMTP id f5mr15553882ano.27.1329342583782;
        Wed, 15 Feb 2012 13:49:43 -0800 (PST)
Return-Path: <dawnwolth...@gmail.com>
Received: from mail-qw0-f50.google.com (mail-qw0-f50.google.com [209.85.216.50])
        by gmr-mx.google.com with ESMTPS id d8si2728304qcu.1.2012.02.15.13.49.43
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 15 Feb 2012 13:49:43 -0800 (PST)
Received-SPF: pass (google.com: domain of dawnwolth...@gmail.com designates 209.85.216.50 as permitted sender) client-ip=209.85.216.50;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of dawnwolth...@gmail.com designates 209.85.216.50 as permitted sender) smtp.mail=dawnwolth...@gmail.com; dkim=pass header...@gmail.com
Received: by qabg27 with SMTP id g27so2050296qab.16
        for <InterSystems-ZEN@googlegroups.com>; Wed, 15 Feb 2012 13:49:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:sender:date:x-google-sender-auth:message-id:subject
         :from:to:content-type;
        bh=ecM/ybQQcFrjYXDOAR25AkSzChv+1p2eeWbdwURixaE=;
        b=uQs9oCtrScrGenpPEPFmWDX+q+1VfDQAiOJMLO4nRpw2+6G27RnioVtCgnvGkwOv06
         4x0iUP7DppavEYnlN4r8nCLSJg+cC65WZXXo8sMvM6ePazPUDf8J6QoHTvsbpUxwY0my
         XUY+JzNiVdNTFhLTCZ3g3+xhj/6pNCSTnHL78=
MIME-Version: 1.0
Received: by 10.229.106.23 with SMTP id v23mr16101018qco.52.1329342583576;
 Wed, 15 Feb 2012 13:49:43 -0800 (PST)
Sender: dawnwolth...@gmail.com
Received: by 10.229.234.17 with HTTP; Wed, 15 Feb 2012 13:49:43 -0800 (PST)
Date: Wed, 15 Feb 2012 15:49:43 -0600
Message-ID: <CANKEuc7jr__952vcbwrGEhg74Twqn9qxn0k3tWkMWcJ_0xp...@mail.gmail.com>
Subject: Reading 2012.1 doc--how to get an html5 page
From: Dawn Wolthuis <dw...@tincat-group.com>
To: "InterSystems: Zen Community" <InterSystems-ZEN@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1

Yikes. I just agreed to do a talk on the html5boilerplate and Zen at a
little conference, right before I found out I had a show-stopper in
2010.2.1, so I'm in a bit of a bind as I was planning to show off what
we have at that point. I have just been told a bug will not be fixed
in 2010.2.1 and that I should upgrade to 2012.1, so I am looking for
2012.1 doc related to the html5 doctype at the top of the pages. I did
not find anything by searching the doc that was downloaded with the
trial version of 2012.1, but I found this in the release notes on the
web:

"Whether HTML5 output is produced or not is controlled by the setting
of a global, ^%ISC.ZEN.cssLevel. If the value of this global is set to
3, all Zen pages written by InterSystems that are served to browsers
that support it will produce HTML5 output (interpreted in strict
rather than quirks mode). If the global is missing or has the value 2,
HTML output will be the same as in 2011.1. The default for new
installations and upgrades is to retain the previous behavior."

I want to be sure that I can generate pages with an html5 doctype for
any pages we choose, just like any other web developer might do, and
use the html5boilerplate features we are using in 2010.2.1 for
handling older browsers.

In 2010.2.1 we get out of quirks mode with

Parameter HTMLDTD = 1;

We were hoping for a new parameter or a changed value for this
parameter in order to generate html5 pages with Zen, but I see no
documentation that indicates this is the case. Given that every
browser out there supports the html5 doctype at the top of the page,
with easier-to-design pages than the no doctype quirks mode than we
have been using, I am not sure what it means that there would be a
browser that does not support the html5 doctype but does support
having no doctype. I have tested html5 doctypes in IE 6, 7, 8, 9 as
well as various versions of FF, Chrome, Safari, Opera, etc. but I am
still working on design, so there might be some issues left to
discover. So, I am guessing that I am not understanding this paragraph
in the release notes.

What is the magic to getting the html5 doctype to generate at the top
of each Zen page? The release notes indicate some sort of global (we
rarely use this word on our team as we work with MV files) that needs
a new value. We definitely do not want to change this behavior
globally. Can we set that value for a page through the SMP or do we
need to get to the COS prompt and fiddle around (something we NEVER do
unless explicitly told there is no other way)? I'm hopeful the page
itself and not the config of the system will be able to specify the
doctype to be used, but I have not yet figured out what goes into a
page when we want the doctype to be the current industry standard
(html 5 doctype). We definitely do not want a system-wide parameter as
we have some namespaces that should currently generate quirks mode
pages until we are ready to switch them over and others where we would
want to start by testing out some pages.

So, how do we get the html 5 doctype on the top of the pages we are
testing in html5? We do not want a different doctype in the case of
different browsers (who does that?!), so I'm hoping that I am simply
not understanding. If it is not possible to generate html5 pages still
in 2012.1, I need to sink into my seat, I mean, I need to figure out
how to get out of the talk I was going to do and also figure out how
to get our application working, given the show-stopper in 2010.2.1,
convert our html5boilerplate features from 2010.2.1 to 2012.1 and
ensure that our pages work. I am not finding the right doc by
searching for html5 or doctype within the documentation delivered with
the 2012.1 download.  Thanks in advance for any tips.  --dawn
-- 
Dawn M. Wolthuis

Take and give some delight today