[
https://issues.apache.org/jira/browse/SHINDIG-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763790#action_12763790
]
Randy Hudson edited comment on SHINDIG-1187 at 10/8/09 8:16 PM:
----------------------------------------------------------------
The person who worded that section probably incorrectly assumed that having an
href attribute implied type="url". Take a look at:
http://wiki.opensocial.org/index.php?title=Gadgets_XML_Reference&oldid=2817#Content_Section
Where it says that the href attribute is not allowed for content types other
than "url". I recently corrected this
(http://wiki.opensocial.org/index.php?title=Gadgets_XML_Reference&diff=3450&oldid=2817)
as it makes sense not to force people to inline HTML.
Here's another link which to me seems to capture the rationale behind the
limitation:
http://code.google.com/apis/gadgets/docs/fundamentals.html#URL
The limitation makes sense when the entire rendering process has been
"out-sourced". But for type="html", I don't see any fundamental difference
between inlined HTML and HTML that is referenced. Except of course that
editing standalone HTML is much easier and allows for possible reuse.
was (Author: randy.hudson):
The person who wrote that statement incorrectly assumed that having an href
attribute implied type="url".
Here's a link that to me seems to capture the rationale behind the limitation
that is poorly described in the spec:
http://code.google.com/apis/gadgets/docs/fundamentals.html#URL
It seems to make sense for type="url" content. For type="html", I don't see
any fundamental difference between inlined HTML and HTML that is referenced.
Except of course that editing standalone HTML is much easier and allows for
possible reuse.
> Gadget Spec - Rendering must support multiple content sections
> --------------------------------------------------------------
>
> Key: SHINDIG-1187
> URL: https://issues.apache.org/jira/browse/SHINDIG-1187
> Project: Shindig
> Issue Type: Bug
> Components: Java
> Affects Versions: 1.1-BETA3
> Reporter: Randy Hudson
> Priority: Critical
>
> If gadget XML contains:
> <Content type="html" view="home">
> <![CDATA[
> <p>Why don't I show up?</p>
> ]]>
> </Content>
> <Content type="html" href="/some/more/html/content" view="home"/>
> Only the second content shows up in the rendered gadget. Both sections
> should show up. The restriction related to limits on content with hrefs only
> applies for type="url" content.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.