As I was writing up the patch, it became clear there were a number of
edge cases that needed to be included. The intent is not to sneak
things into the spec, but to insure this patch actually covers all
usages without leaving ambiguity. Comments below.
These examples are discussed and shown in the os:Var patch. One of
> I don't recall the <os:Var> proposal mentioning such usage, and no
> examples are given in this patch.
the main reasons for including os:Var in 1.0 is to improve on local
variables in templates, which overlaps with custom tag parameters.
The patch calls this out to remove ambiguity.
http://wiki.opensocial.org/index.php?title=Os:Var_variables_in_templates_and_data_pipelining#Scope
If need be, they can be repeated in this section or we can add a cross-
reference to usage.
> Why was this refactored? This example demonstrated a very useful aspectThe original example was not dropped, but moved to item 4 in the patch
> of ${My} - dropping support for this was never discussed.
where expected behavior is specifically called out.
Element parameters that contain attributes will result in an
object that has the
attribute values placed as property values of the root object.
Below code results in: ${My.messageStyle.color} = "blue"
<myapp:HelloWorld >
<messageStyle color="blue" />
</myapp:HelloWorld>
> EL. (http://www.opensocial.org/Technical-Resources/opensocial-spec-v09/Ope...
> I believe there is a section detailing how DOM elements are treated in
> )Treating them like strings here allows for the creation of content
> Why treat them like strings here?
with markup and assigning to keys without the downside of disallowing
other variable types. Content with rudimentary-to-complex markup
appears to be a much more common use-case for parameters than using
them to create complex data structures. Complex data structures are
more easily created with javascript and registered with the data
context using the JS API. Treating nested elements as strings
satisfies the rendered content use-case.
It will follow EL escaping rules. In this case, if auto-escaping is
> BTW, in the Wiki version, the <b> tag is not escaped on this line. Just
> to be clear, you are saying that it will get escaped, right?
enabled this translates to having the <b> become html-encoded to
<b>
I agree that "value" it is less than ideal. Do you have an alternate
> The name "value" is also way too common to be reserved. (In HTML,
> <input> and <option> tags use it, suggesting a pattern developers may
> chose to replicate for custom tags.)
suggestion? The patch could be modified to be "innerXML" or
"innerHTML". Alternately, we could change this to state that if
attributes are included on an element, the content within the tag will
be ignored.
Do you have a preference on this point?
--
You received this message because you are subscribed to the Google Groups "OpenSocial and Gadgets Specification Discussion" group.
To post to this group, send email to opensocial-an...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-and-gadg...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensocial-and-gadgets-spec?hl=.
The two weaknesses of os:Render are that
1. The intent of the parameters is not clear - the presence of
os:Render has a side effect of them being converted from data to text
(markup)
2. The presence of os:Render precludes having data parameters.
(Item #3 from patch)
> Custom tags only register element parameters that are direct child nodes
> of the custom tag instance. Nested elements are treated as string content
> and subject to any escaping rules or behavior.
If we strike this from the proposal, is everything else good to go?
--
clc
On Dec 15 2009, 9:35 am, goosemanjack <cc...@myspace.com> wrote:
> > In any case, since we are not discussing the removal of <os:Render> from the
> > spec, I don't see why we should consider adding something
> > that accomplishes a subset of the same functionality.
>
> We actually are discussing deprecating <os:Render> on the below
> thread. Add any additional comments on that thread.
>
> http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thr...
--
You received this message because you are subscribed to the Google Groups "OpenSocial and Gadgets Specification Discussion" group.
To post to this group, send email to opensocial-an...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-and-gadg...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensocial-and-gadgets-spec?hl=en.
> > opensocial-and-gadg...@googlegroups.com<opensocial-and-gadgets-spec%2Bunsu...@googlegroups.com>
To unsubscribe from this group, send email to opensocial-and-gadg...@googlegroups.com.
> >> <opensocial-and-gadgets-spec%2Bunsu...@googlegroups.com<opensocial-and-gadgets-spec%252Buns...@googlegroups.com>