You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@shindig.apache.org by Praveena Sarathchandra <pr...@wso2.com> on 2012/10/18 12:21:36 UTC

Defining DOCTYPE inside a gadget

Hi,

Is it possible to define DOCTYPE inside a Shindig gadget?

Thanks.

RE: Defining DOCTYPE inside a gadget

Posted by Joel Cairney <jo...@caseware.com>.
I found one gadget remaining where my colleagues hadn't removed the
doctype tag.  In there, it's the first html tag in the CDATA block, and
we have no <html>, head, or body tags.  But when rendered, the doctype,
which would otherwise not be present, appears at the top of the rendered
html, above the <html>, head, and body tags provided by Shindig.

So I think that's another solution.

-----Original Message-----
From: Ryan Baxter [mailto:rbaxter85@apache.org] 
Sent: Thursday, October 18, 2012 1:06 PM
To: users@shindig.apache.org
Subject: Re: Defining DOCTYPE inside a gadget

I am not sure whether that will work, I have never tried it before.  I
think you can put a body element in your gadget and that will be added
to your gadget when it renders, so maybe the doctype works the same way.

On Thu, Oct 18, 2012 at 11:06 AM, Joel Cairney
<jo...@caseware.com>wrote:

> Is it not also true that sticking <!DOCTYPE html> at the top of your 
> CDATA html content will push it to the top of the rendered HTML?
>
> I seem to recall this being my experience, but I can't verify it just 
> now.
>
> -Joel
>
> -----Original Message-----
> From: Ryan Baxter [mailto:rbaxter85@apache.org]
> Sent: Thursday, October 18, 2012 10:35 AM
> To: users@shindig.apache.org
> Subject: Re: Defining DOCTYPE inside a gadget
>
> Do you want to add the HTML 5 doctype?  By default gadgets render in 
> quirks mode but your can add a specification version of 2 to the 
> gadget XML to force it to add the HTML 5 doctype.
>
> For example...
> <Module specificationVersion='2'>
>
> On Thu, Oct 18, 2012 at 6:21 AM, Praveena Sarathchandra
> <pr...@wso2.com>wrote:
>
> > Hi,
> >
> > Is it possible to define DOCTYPE inside a Shindig gadget?
> >
> > Thanks.
> >
>
> --
> Click the link below to report this message as spam to Caseware E-Mail

> Security Server ESVA.
> http://esva5.caseware.com/cgi-bin/learn-msg.cgi?id=B3B6A286F6.76ACB
>
>
>
>

--
Click the link below to report this message as spam to Caseware E-Mail
Security Server ESVA. 
http://esva5.caseware.com/cgi-bin/learn-msg.cgi?id=70725286F6.89CB9




Re: Defining DOCTYPE inside a gadget

Posted by Ryan Baxter <rb...@apache.org>.
I am not sure whether that will work, I have never tried it before.  I
think you can put a body element in your gadget and that will be added to
your gadget when it renders, so maybe the doctype works the same way.

On Thu, Oct 18, 2012 at 11:06 AM, Joel Cairney <jo...@caseware.com>wrote:

> Is it not also true that sticking <!DOCTYPE html> at the top of your
> CDATA html content will push it to the top of the rendered HTML?
>
> I seem to recall this being my experience, but I can't verify it just
> now.
>
> -Joel
>
> -----Original Message-----
> From: Ryan Baxter [mailto:rbaxter85@apache.org]
> Sent: Thursday, October 18, 2012 10:35 AM
> To: users@shindig.apache.org
> Subject: Re: Defining DOCTYPE inside a gadget
>
> Do you want to add the HTML 5 doctype?  By default gadgets render in
> quirks mode but your can add a specification version of 2 to the gadget
> XML to force it to add the HTML 5 doctype.
>
> For example...
> <Module specificationVersion='2'>
>
> On Thu, Oct 18, 2012 at 6:21 AM, Praveena Sarathchandra
> <pr...@wso2.com>wrote:
>
> > Hi,
> >
> > Is it possible to define DOCTYPE inside a Shindig gadget?
> >
> > Thanks.
> >
>
> --
> Click the link below to report this message as spam to Caseware E-Mail
> Security Server ESVA.
> http://esva5.caseware.com/cgi-bin/learn-msg.cgi?id=B3B6A286F6.76ACB
>
>
>
>

RE: Defining DOCTYPE inside a gadget

Posted by Joel Cairney <jo...@caseware.com>.
Is it not also true that sticking <!DOCTYPE html> at the top of your
CDATA html content will push it to the top of the rendered HTML?

I seem to recall this being my experience, but I can't verify it just
now.

-Joel

-----Original Message-----
From: Ryan Baxter [mailto:rbaxter85@apache.org] 
Sent: Thursday, October 18, 2012 10:35 AM
To: users@shindig.apache.org
Subject: Re: Defining DOCTYPE inside a gadget

Do you want to add the HTML 5 doctype?  By default gadgets render in
quirks mode but your can add a specification version of 2 to the gadget
XML to force it to add the HTML 5 doctype.

For example...
<Module specificationVersion='2'>

On Thu, Oct 18, 2012 at 6:21 AM, Praveena Sarathchandra
<pr...@wso2.com>wrote:

> Hi,
>
> Is it possible to define DOCTYPE inside a Shindig gadget?
>
> Thanks.
>

--
Click the link below to report this message as spam to Caseware E-Mail
Security Server ESVA. 
http://esva5.caseware.com/cgi-bin/learn-msg.cgi?id=B3B6A286F6.76ACB




Re: Defining DOCTYPE inside a gadget

Posted by Ryan Baxter <rb...@apache.org>.
Do you want to add the HTML 5 doctype?  By default gadgets render in quirks
mode but your can add a specification version of 2 to the gadget XML to
force it to add the HTML 5 doctype.

For example...
<Module specificationVersion='2'>

On Thu, Oct 18, 2012 at 6:21 AM, Praveena Sarathchandra
<pr...@wso2.com>wrote:

> Hi,
>
> Is it possible to define DOCTYPE inside a Shindig gadget?
>
> Thanks.
>