Yes, we never did get agreement on how to properly support standards mode in
the spec.

What shindig implements today is that if the developer writes a gadget
"following the spec", there's no doctype.

However, if the developer includes a fully-formed HTML document, we preserve
the doctype. This behavior comes from proxied rendering (which DOES specify
explicit doctype handling in the spec), but we copy it even for content
declared inline.

The alternative proposals were:

1. "quirks=false" -- mostly shot down because it's too vague.
2. Some attribute to specify the doctype based on an enum (I believe that
came from myspace).


On Wed, Oct 28, 2009 at 9:57 AM, Weygandt, Jon <jweyga...@ebay.com> wrote:

> I did a quick Markmail and opensocial.org search, and found lots of
> discussions, proposals and even +1 votes. But where it counts, the v0.9
> spec, and errata proposal for v1.0, there is nothing. So as it stands,
> the official OpenSocial container MUST render in quirks mode. Anything
> Shindig does with options is a Shindig only extension. Also, I seem to
> recall some other production containers NOT rendering in quirks mode.
>
> Did something really get adopted for the spec and simply not properly
> incorporated in the docs? Or something else?
>
> BTW - some of the people on this email thread were also on the other
> threads of discussion.
>
> -----Original Message-----
> From: John Hjelmstad [mailto:fa...@google.com]
> Sent: Tuesday, October 27, 2009 6:52 PM
> To: shindig-dev@incubator.apache.org
> Subject: Re: HTML doctype declaration for content
>
> I seem to recall that the decision we made a while back was:
> * if no doctype specified, let default reign (quirks, equivalent to
> writing a doctype-free webpage)
> * else include doctype
>
> Take that with a grain of salt; it's been a while. Perhaps it's worth
> plumbing the archives for the longer discussion.
>
> --j
>
> On Tue, Oct 27, 2009 at 6:35 PM, Chirag Shah <chiragsh...@gmail.com>
> wrote:
>
> > Hey,
> >
> > It looks like there's a discrepancy in which HTML doctype is used
> > between the Java and PHP gadget renderers.
> >
> > GadgetHtmlRenderer.php says that "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD
> > HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\";>" should be
> > used when "quirks = false or empty in the view."
> >
> > The Java Gadget renderer will not set a default doctype if it can't
> > find one. Shouldn't both systems explicitly set a doctype if it's not
> > provided?
> >
>

Reply via email to